model-writtenrun 1442 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun - Sep 2025 · 14 entries
- Michael Paquier opened the thread with optional 8-byte TOAST identifiers to prevent allocation loops when a TOAST table exhausts its 32-bit identifier space, preserving existing on-disk pointers and introducing a callback-based translation layer for additional formats #1.
- When Hannu Krosing and Nikita Malakhov raised broader TOAST extensibility, Michael kept the immediate scope on wider identifiers and future compression formats, arguing for incremental changes with backward compatibility #2 #3 #4.
- Nikita found an incorrect OID pointer-size constant, and Michael corrected it while moving the translation layer earlier in the series and adding identifier-allocation callbacks with conflict handling #5 #6.
- Michael's repeated small-slice detoasting benchmark showed no measurable runtime difference from the translation layer, while Greg Burd's review supported the decomposition and requested consideration of global-counter contention #7 #8.
- Nikita proposed per-relation counters, but Michael deferred them because persistent per-table allocation state would add complexity beyond the immediate fix #9 #15.
- Hannu advocated direct TID pointers to avoid index lookups and shrink heap tuples, while discussion exposed questions about rewrites, vacuum, stored metadata, and logical replication #10 #11 #14 #21.
- Nikhil Kumar Veldanda supplied two patches on top of the main series for extended compression metadata and ZSTD, then corrected default-compression handling in a small revision #23 #24.
- Nikita supplied a separate direct-TID-chain prototype on top of the main series, reporting fast small-value access but unresolved vacuum and batch-insertion issues #26.
- Michael treated the ZSTD and TID experiments as tests of the proposed interface, while insisting that a broader TOAST rewrite should not block the identifier-limit fix #29 #32.
- The next revisions separated pointer renaming, centralized tag selection to accommodate potentially shorter pointers, and moved pointer-specific inline routines into toast_external.c #33 #36.
- Tom Lane's detailed review found an uninitialized-pointer read and questioned the abstraction, GUC, and separate counter; he proposed a named wider identifier type, a relation option, and widening the existing OID counter #38.
- Andres Freund supported a reusable wider identifier type and upgrade-specific compatibility handling, but preferred per-table sequences over a global counter; Michael accepted the type and configuration changes while retaining global allocation for simplicity #39 #40.
- Michael's reworked series introduced oid8, widened nextOid, replaced the GUC with toast_value_type, and added binary-upgrade handling, while dropping the experimental amcheck test patch as unnecessary for the basic implementation #46.
- After rebases and a tag-range check, the series remained without agreement on the translation layer or whether small identifiers in wider TOAST tables should retain shorter pointers #47 #48 #49.
Nov 2025 - Feb 2026 · 6 entries
- Robert Haas questioned whether the abstraction helped enough future formats to justify itself and raised wider-pointer storage costs; Michael clarified that wider TOAST identifiers were opt-in and remained willing to change the implementation #51 #52.
- Michael rebased the unchanged design again, then proposed landing the independently useful oid8 prerequisite while working on an implementation without pointer redirection #53 #54.
- Nikhil reviewed oid8's negative-input behavior and cleanup issues, and Michael confirmed that wrapping negative input was intentional before committing only the data-type patch from #53, with light cleanup and expanded tests, as b139bd3b6e #55 #56 #58.
- Man Zeng reported a lowercase sentence opening introduced in the oid8 documentation, and Michael applied the inline correction as ba887a8cdb #57 #59.
- Michael resent the fourteen remaining TOAST patches after oid8 landed, still preserving the callback design while developing its replacement #60.
- At the thread's end, Michael withdrew the remaining series from the v19 cycle and planned a v20 rework without function-pointer redirection; the oid8 prerequisite and documentation correction had landed, but 8-byte TOAST support had not #61.