model-writtenrun 644 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
May - Sep 2024 · 5 entries
- Bertrand Drouvot opened the thread with a prototype for per-relfilenode I/O statistics, including write counters unavailable through relation OIDs during buffer writes, and preserved prior counters across TRUNCATE by combining relation and relfilenode statistics #1.
- Robert Haas requested a clearer rationale and questioned rewrite behavior; Bertrand explained the write-accounting benefit and his intention to preserve existing statistics across rewrites #2 #3 #4 #5.
- Robert Haas and Andres Freund challenged storing historical and current counts in separate places, while Andres identified a larger benefit: reconstructing tuple statistics during WAL replay to improve autovacuum after failover or crash recovery #7 #8 #9.
- Robert Haas asked for a consistent choice between preserving the existing user experience and exposing genuinely physical-file statistics; Bertrand favored preservation, while Kyotaro Horiguchi questioned whether the buffer-manager abstraction alone justified the new statistics kind #12 #13 #14.
- Michael Paquier objected to enlarging every statistics hash key and discussed alternative mappings, but Bertrand emphasized that relfilenumber uniqueness also requires tablespace identity and that buffer writes lack relation OIDs #16 #17 #18 #19.
Nov 2024 - Jan 2025 · 2 entries
- After maintaining the prototype through rebases, Bertrand added a hash-key-padding prerequisite and proposed moving all relation counters to relfilenode-based storage while preserving user-visible behavior; Robert supported that direction provided the implementation stayed clean #23 #24 #27.
- Kirill Reshke suggested a separate buffer-tag-to-OID map, but Bertrand returned to relfilenode keys because relation OIDs are unavailable during crash recovery, and Michael reinforced the importance of recovering statistics for autovacuum #30 #31 #32 #34.
Sep 2025 - Mar 2026 · 7 entries
- With statistics object IDs widened to 64 bits, Bertrand proposed packing tablespace and relfilenumber into the existing key, resolving the extra-key-field objection and deferring new write counters and replay population until the foundation was ready #35 #37.
- Bertrand's new three-part implementation added rewrite tests, keyed the existing relation-statistics kind by locator, and tracked pending rewrites so statistics could survive commits, aborts, subtransactions and two-phase transactions #39.
- Michael separated the rewrite tests to reduce duplicated expected output and disabled autovacuum to stabilize dead-tuple checks, then committed that component as b23fe993e1, leaving the two implementation patches outstanding #40 #41.
- Michael questioned the complexity of preserving counters across rewrites, while Bertrand argued that resetting them would regress monitoring and vacuum decisions; the next submission contained only the rebased implementation remainder #41 #42 #43.
- Andres identified redundant autovacuum catalog lookups and possible collisions in synthetic partitioned-table keys; Bertrand added direct locator lookup, reserved a pseudo-tablespace OID, and adopted a Relation-based vacuum-reporting interface #44 #46.
- Michael proposed separate table, index and relfilenode statistics to simplify the design, while Bertrand preferred the unified incremental approach and Andres argued that recovery should populate more than the three counters immediately needed by autovacuum #45 #47 #48.
- The design disagreement persisted through repeated rebases into May 2026, with Bertrand seeking a committer for the unified approach and defending rewrite preservation as necessary compatibility behavior #50 #55 #56.
Jul - Aug 2026 · 4 entries
- Michael then supplied an alternative three-part series splitting table and index statistics, separating pending state, and introducing relfilenode tuple counters with experimental WAL-replay updates; this prototype deliberately reset those counters across rewrites #57.
- Andres asked that the table/index cleanup proceed independently, and Michael agreed to move the first two patches into separate discussion; Bertrand suggested resuming the earlier thread devoted to that split #58 #59 #60.
- By August, Bertrand reported that the table/index split was almost landed elsewhere and returned to the unresolved reset policy, demonstrating that SET TABLESPACE could erase counters needed for vacuum or analyze eligibility #63.
- The thread ended with the rewrite tests committed and relfilenode statistics still unfinished: Michael favored rebuilding statistics for genuine rewrites but agreed that storage-only tablespace moves should preserve them and acknowledged that his prototype mishandled that case #64.