]> granicus.if.org Git - postgresql/commitdiff
Fix comment on when HOT update is possible.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 May 2019 10:09:28 +0000 (13:09 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 May 2019 10:09:28 +0000 (13:09 +0300)
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.

src/backend/access/heap/heapam.c

index 0a9aafb7b62888164af959da837746ed34853c6c..b9e45fe2983081a96dd4428cb093677f9fc471de 100644 (file)
@@ -4160,7 +4160,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;