Jan 2023

5 commits
Tighten up VACUUM's approach to setting VM bits.
16 Jan 2023Peter Geogheganmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #220 of 1 reviewer saw the final version

The commit preserves the visibility-map changes from #22 in vacuumlazy.c and visibilitymap.c. Additional edits rearrange buffer-read code around comments, remove Assert(prunestate->hastup), adjust whitespace, and shorten the commit explanation.

  • Andres Freundsaw an earlier versiontrailerAndres challenged the race description, requested a reproducer, and objected to unrelated cleanups in #4 and #9; the clearly identifiable reviewed version precedes the substantive PD_ALL_VISIBLE repair in #7.
Make lazy_vacuum_heap_rel match lazy_scan_heap.
12 Jan 2023Peter Geogheganmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #72 of 2 reviewers saw the final version

This extracts the lazy_vacuum_heap_rel() cleanup present in #7: tblk becomes blkno, counters are initialized at declaration, and redundant cleanup statements disappear. The visibility-map logic is left for the later commit.

  • Andres Freundsaw the final versionLLM analysis, 96% sureAndres objected to mixing unrelated cleanups into the visibility-map fix in #4 and #9, prompting their separation as promised in #12.
  • Robert Haassaw the final versionLLM analysis, 91% sureRobert specifically criticized the unnecessary variable-name changes in the original second patch in #11, and those cosmetic changes were subsequently extracted.
vacuumlazy.c: Tweak local variable name.
12 Jan 2023Peter Geogheganmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #71 of 1 reviewer saw the final version

This extracts only the uncnt-to-nunused rename in lazy_vacuum_heap_page() from #7, including its assertion and WAL-record uses.

  • Andres Freundsaw the final versionLLM analysis, 91% sureAndres objected to unrelated cleanup in the version containing this rename in #4 and reiterated that concern in #9, leading to separate cleanup commits.
vacuumlazy.c: Save get_database_name() in vacrel.
3 Jan 2023Peter Geogheganmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surelanded as postedfrom patchset #2

All five vacuumlazy.c hunks match #2 modulo line offsets: add and initialize vacrel->dbname, then reuse it in reporting.

Avoid special XID snapshotConflictHorizon values.
2 Jan 2023Peter Geogheganmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #1

The commit exactly takes the first patch of the two-patch submission #1, including both TransactionIdIsNormal checks and the standby.c assertion, while leaving the visibility-map patch pending. Robert's discussion of this change in #11 occurred after it was committed.

Credits across 5 commits

Author
Peter Geoghegan5
Reviewer
Andres Freund1
Committer
Peter Geoghegan5