model-writtenrun 5302 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan demonstrated that repeated VACUUM operations could steadily underestimate an unchanged small table because scanning its last page exceeded the existing 2% threshold, and proposed retaining reltuples whenever at most one page was scanned without covering the whole table #1.
- Matthias van de Meent argued that retaining the old estimate was wrong when the scanned pages alone contained more tuples than that estimate, illustrating how uneven tuple density could trigger this case #3 #5 #7.
- Peter defended the targeted heuristics, noted that full scans remained authoritative and unknown estimates required care, and requested a reproducible example while questioning whether the narrow additional case warranted a fix #6 #8.
- Matthias supplied a 33-page example where VACUUM reported 33 tuples despite scanning 64 tuples on one page, reposted Peter's original patch alongside his own extension, and said the original was acceptable even without that extension #9.
- Peter identified an apparently accidental allowSystemTableMods condition in the extension and declined its broader handling of skewed density; the thread ended with his announcement that he would commit the original version #10.
- The following day, Peter committed the original code unchanged with an expanded commit description and a PostgreSQL 15 backport; Matthias's additional estimation logic remained uncommitted #1 #9 3097bde7dd.