Skip to content

Commit d7bf9ad

Browse files
committed
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.
1 parent 0569f04 commit d7bf9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4160,7 +4160,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
41604160
* Since the new tuple is going into the same page, we might be able
41614161
* to do a HOT update. Check if any of the index columns have been
41624162
* changed. If the page was already full, we may have skipped checking
4163-
* for index columns. If so, HOT update is possible.
4163+
* for index columns, and also can't do a HOT update.
41644164
*/
41654165
if (hot_attrs_checked && !bms_overlap(modified_attrs, hot_attrs))
41664166
use_hot_update = true;

0 commit comments

Comments
 (0)