From: Peter Geoghegan Date: Wed, 12 Jan 2022 22:13:35 +0000 (-0800) Subject: vacuumlazy.c: fix "garbage tuples" reference. X-Git-Tag: REL_15_BETA1~925 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9b873f667681232469007d755d0c163a63ea978;p=thirdparty%2Fpostgresql.git vacuumlazy.c: fix "garbage tuples" reference. Another minor oversight in commit 4f8d9d12. --- diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 5e4a5d0d82c..f8c6c2580af 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1898,7 +1898,13 @@ retry: } /* - * Remove the collected garbage tuples from the table and its indexes. + * Main entry point for index vacuuming and heap vacuuming. + * + * Removes items collected in dead_items from table's indexes, then marks the + * same items LP_UNUSED in the heap. See the comments above lazy_scan_heap + * for full details. + * + * Also empties dead_items, freeing up space for later TIDs. * * We may choose to bypass index vacuuming at this point, though only when the * ongoing VACUUM operation will definitely only have one index scan/round of