aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2019-05-14 13:06:28 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2019-05-14 13:06:28 +0300
commite95d550bbbe21f51d329fbae84cbac3545a9e650 (patch)
tree01f60fca60557afedd3a768c78265d59def4db65 /src
parent7d9eca59cf958eb8c8ff47c40003392681a9ce68 (diff)
downloadpostgresql-e95d550bbbe21f51d329fbae84cbac3545a9e650.tar.gz
postgresql-e95d550bbbe21f51d329fbae84cbac3545a9e650.zip
Fix comment on when HOT update is possible.
The conditions listed in this comment have changed several times, and at some point the thing that the "if so" referred to was negated. The text was OK up to 9.6. It was differently wrong in v10, v11 and master, so fix in all those versions.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/heap/heapam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index d97cb4c6426..ec9853603fd 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -3587,7 +3587,7 @@ l2:
* Since the new tuple is going into the same page, we might be able
* to do a HOT update. Check if any of the index columns have been
* changed. If the page was already full, we may have skipped checking
- * for index columns. If so, HOT update is possible.
+ * for index columns, and also can't do a HOT update.
*/
if (hot_attrs_checked && !bms_overlap(modified_attrs, hot_attrs))
use_hot_update = true;