model-writtenrun 7154 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Nov - Dec 2023 · 3 entries
- Alexander Korotkov opened the thread with twelve patches intended to make table AMs suitable for OrioleDB and other index-organized or alternative-MVCC implementations, covering tuple operations, cache lifetime, sampling, options, index interaction and flexible row identifiers #1.
- Matthias van de Meent questioned the enlarged API, inadequate documentation and unresolved index-AM interactions, and proposed moving the current-transaction check into tuple slots; Mark Dilger separately objected to exposing executor state through the upsert interface #2 #3 #5.
- Pavel Borisov reviewed cache cleanup, transaction checks and replacement slots, while Nikita Malakhov questioned error reporting during cache cleanup; Alexander later agreed to defer tightly coupled index changes and isolate executor details #7 #8 #10 #12 #13.
Mar - Jun 2024 · 26 entries
- After the winter gap, Alexander rebased and reordered the series, implemented the slot-level transaction check and cache assertion, then incorporated comment improvements and Japin Li's missing-header report #14 #15 #16 #17 #18.
- The cache callback, replacement-slot return and current-transaction slot method landed separately from #18, with wrapper removal or documentation polishing in 02eb07ea89, c35a3fb5e0 and 0997e0af27.
- Pavel supplied a follow-up for MinimalTupleSlot comments and an inaccurate error message; Alexander split it into the comment-only 10baee0c95 and the error-message 41d3780d3d, extending the latter to virtual slots #21.
- The eight-patch remainder refined sampling and reloptions, while Alexander deferred RowRefType and RowID because removing ROW_MARK_COPY exposed unresolved FDW semantics that could not be settled before the feature freeze #23.
- Across the next revisions, Alexander kept acquire_sample_rows() in analyze.c rather than moving it into the heap implementation, clarified index-insertion responsibility, and accepted Pavel's cleanup suggestions; Pavel then rebased the series #26 #27 #28 #29 #31.
- The ANALYZE and reloptions components of #31 landed unchanged as 27bc1772fc and c95c25f9af, while index-insertion control landed with lightly polished documentation as b1484a3f19.
- The reloptions landing acknowledges Hao Wu's earlier work in thread #47821, but its exact matching source is the later submission #31, so the other thread's attribution to #534369 does not identify the final submitted version of c95c25f9af.
- Although Pavel reviewed the upsert implementation, Alexander declined to commit it because it moved executor internals into the table AM, proposing an opaque callback context for a later release instead #32 #34.
- Tom Lane reported a Coverity warning caused by consulting two copies of pg_class data, prompting Alexander's RelationParseRelOptions() fix; Japin spotted an extra semicolon, but the larger reloptions design was soon reconsidered #36 #38 #39.
- Jeff Davis explained that the first reloptions implementation mishandled the relationship between StdRdOptions, variable-length data and shared options, leading Alexander to revert it in 867cc7b6dd and propose separating externally visible options from AM-private storage #40 #41.
- Pavel rebuilt reloptions around separate common and private structures, after which Alexander made CommonRdOptions independently computable and added a test AM; Pavel then corrected TOAST-AM lookup and comments #43 #44 #46.
- The redesigned reloptions implementation landed as 9bd99f4c26 from Alexander's patch forwarded by Pavel in #46, with committer changes replacing embedded common options with allocated storage, adding relcache cleanup and serialization, and adjusting NULL handling and TOAST-AM lookup.
- The second reloptions landing also acknowledges the earlier work in thread #47821, but its latest matching submission is this thread's redesign #46, rather than the May 2023 source #534369 claimed by that thread for 9bd99f4c26.
- Andres Freund found that the new ANALYZE interface forced existing block-based AMs to duplicate sampling code, prompting an initial fix that restored the old callbacks alongside the new interface #47 #48.
- Andres rejected maintaining two sampling interfaces and requested reusable block-level machinery; Alexander instead posted an argument-based callback design, which Pavel reviewed and documented #50 #52 #53 #54.
- The resulting dd1f6b0c17 differed significantly from #54, using global callback variables instead of per-call state; Andres objected to the unposted redesign, and Alexander acknowledged rushing significant changes before committing #56 #57.
- Robert Haas questioned the readiness and consensus behind the recent landings, while Alexander prepared a nontrivial ANALYZE rollback that preserved intervening streaming-read work #58 #59 #60.
- Andres's subsequent review identified unresolved reloptions factoring, executor/index-state preparation, replacement-slot ownership and relcache-rebuild issues, and recommended removing the insufficiently reviewed changes #65.
- Alexander reverted the redesigned reloptions implementation in bc1e2092eb and index-insertion control in da841aa4dc, confirming the rollback round in #74.
- The same rollback round removed tuple update/delete locking changes in 193e6d18e5, replacement-slot returns in 8dd0bb84da, and complex cache cleanup in 922c4c461d, following #65 and confirmed by #74.
- Andres and Melanie Plageman reviewed the proposed ANALYZE rollback and discussed its interaction with streaming reads; subsequent debate distinguished long-standing physical-block assumptions from possible future improvements to the table-AM abstraction #69 #72 #75 #86 #90.
- Andres then identified a concrete inherited-table bug: global sampling callbacks could be overwritten while collecting callbacks for multiple child relations; Alexander accepted that further repair was inappropriate and committed the posted rollback as 6377e12a5a #94 #95 #96.
- For future work, Alexander proposed letting each AM perform block selection internally and expose tuples one by one; Pavel described opaque scan state, Robert supported the direction while noting duplication costs, and Andres suggested shared block-oriented helpers #97 #98 #99 #101.
- Mats Kindahl later reinforced the replacement-slot ownership concerns, arguing that dynamically returned slots complicate bounded allocation, clearing and cleanup; no replacement implementation followed in this thread #102.
- Finally, Matthias found conflicting comments left by the ANALYZE rollback, and Alexander removed the accidentally copied heap-specific block in 70a845c04a #103 #104.
- At the thread's close, the current-transaction slot method and its comment/error-message follow-ups remain, while the other listed interface landings have been reverted; broader sampling, upsert, index integration, reloptions and row-identifier work remains deferred without a new complete submission #23 #34 #74 #96 #101 #104.