Jun 2024

1 commit
Remove extra comment at TableAmRoutine.scan_analyze_next_block
22 Jun 2024Alexander Korotkovmaster17beta2REL_19_STABLE17beta2REL_18_STABLE17beta2REL_17_STABLE17beta2
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Removes the duplicate heap-specific comment above TableAmRoutine.scan_analyze_next_block in src/include/access/tableam.h, exactly addressing #103 and confirmed in #104; no attachment proposes this deletion.

  • Matthias van de Meentsaw the final versionLLM analysis, 100% sureIdentified the duplicate and conflicting callback comments in #103, prompting the committed deletion.

Mar - Apr 2024

17 commits
revert: Generalize relation analyze in table AM interface
16 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #603 of 3 reviewers saw the final version

The rollback matches #60 modulo whitespace and rebasing, restoring block-level callbacks while retaining streaming-read integration.

  • Andres Freundsaw the final versionLLM analysis, 100% sureReviewed the rollback in #69 and explicitly recommended applying it in #95 after identifying the global-callback bug.
  • Melanie Plagemansaw the final versionLLM analysis, 99% sureExamined the rollback in #72 and identified its implications for streaming ANALYZE and future placement of prefetching.
  • Robert Haassaw the final versionLLM analysis, 85% sureInvestigated the rollback's alleged regression in #86 and #90, explaining why existing prefetching already required physical block numbers.
Revert: Allow table AM to store complex data structures in rd_amcache
11 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Removes free_rd_amcache and restores flat-cache freeing after Andres questioned relcache-rebuild safety in #65; the rollback is confirmed in #74 without an attached patch.

  • Andres Freundsaw the final versionLLM analysis, 100% sureQuestioned whether complex cache structures survive relcache entry swaps in #65, and the commit explicitly credits his review.
Revert: Allow table AM tuple_insert() method to return the different slot
11 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Restores void-returning tuple_insert interfaces and callers after #65 questioned ownership and allocation overhead of replacement slots; no rollback attachment exists.

  • Andres Freundsaw the final versionLLM analysis, 100% sureRaised replacement-slot cleanup and per-insert allocation concerns in #65, which the rollback explicitly credits.
Revert: Allow locking updated tuples in tuple_update() and tuple_delete()
11 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1revert
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Reverses the tuple update/delete locking changes and their follow-up fix after the reversion discussion in #65; this reverse-direction change does not match the forward patches attached here.

  • Andres Freundsaw the final versionLLM analysis, 100% sureRecommended reverting the locking changes because of unresolved correctness and corruption risks in #65, and is credited by the commit.
Revert: Let table AM insertion methods control index insertion
11 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Removes insert_indexes parameters and conditional index insertion after #65 questioned when the executor should know that the AM owns index insertion; #74 confirms the rollback.

  • Andres Freundsaw the final versionLLM analysis, 100% sureQuestioned unnecessary executor index-state preparation and the interface's justification in #65, and the revert credits his review.
Revert: Custom reloptions for table AM
11 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 2 reviewers saw the final version

Reverts the second reloptions implementation, including CommonRdOptions and its test module, following #65; no attached reverse patch corresponds to this commit.

  • Andres Freundsaw the final versionLLM analysis, 100% sureIdentified misplaced option defaults and confusing parsing interfaces in #65, and is explicitly credited in the revert.
  • Robert Haassaw the final versionLLM analysis, 93% sureExamined the second reloptions landing in #58 and objected to its insufficient explanation, documentation and review before proposing reversion.
Provide a way block-level table AMs could re-use acquire_sample_rows()
8 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% suremodified before commitsignificant changesfrom patchset #540 of 1 reviewer saw the final version

Derives from #54 but replaces AcquireSampleRowsArg and the extra FDW arguments with global callback variables and block_level_table_analyze(); Alexander acknowledges significant last-minute changes in #57.

  • Pavel Borisovsaw an earlier versiontrailerReviewed both proposed approaches in #51 and #53 and supplied comment improvements in #54, before the unposted global-state redesign.
Custom reloptions for table AM
8 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: Feature: Add reloption support for table access method (not this thread)
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #460 of 3 reviewers saw the final version

Alexander's patch forwarded by Pavel in #46 supplies CommonRdOptions and test_tam_options; the commit replaces embedded common options with allocated storage in src/include/utils/rel.h and src/backend/utils/cache/relcache.c, adds cleanup and serialization, and adjusts NULL handling and TOAST-AM lookup. I disagree with attribution to thread #47821, whose May 2023 source #534369 predates this matching April 2024 redesign, although Hao Wu's prior work remains acknowledged.

  • Reviewed-by: Pavel Borisovsaw an earlier versiontrailerPavel reviewed the original implementation in #19 and #24, endorsed the redesign in #45, and supplied corrections in #46, before the committer changed common-option storage and relcache handling.
  • Matthias van de Meentsaw an earlier versiontrailerMatthias questioned the original API's documentation and table/index-option responsibilities in #2, before the reloptions implementation was substantially redesigned.
  • Jess Davissaw an earlier versiontrailerThe credit apparently misspells Jeff Davis, whose objections to the first implementation in #40 prompted the redesign and who confirmed in #76 that deeper review of the second landing was still pending.
Revert "Custom reloptions for table AM"
2 Apr 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Reverts the first custom-reloptions landing after Jeff Davis's design objections in #40, with Alexander confirming the decision in #41; no rollback attachment was posted.

  • Jeff Davissaw the final versionLLM analysis, 100% sureReported incompatible StdRdOptions layout assumptions, shared-option requirements and remaining heap-specific calls in #40, directly prompting the revert.
Let table AM insertion methods control index insertion
30 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #313 of 3 reviewers saw the final version

Selects the index-insertion-control component of #31, rebased without the uncommitted upsert changes and with lightly rewritten insert_indexes documentation in src/include/access/tableam.h.

  • Pavel Borisovsaw the final versiontrailerReviewed the insertion-control behavior and proposed clearer responsibility documentation in #28, which was incorporated before landing.
  • Matthias van de Meentsaw the final versiontrailerQuestioned how index deletion interacts with AM-controlled insertion in #2; the insertion-control implementation subsequently changed only lightly.
  • Mark Dilgersaw the final versiontrailerRequested documentation for the new insertion-control parameter in #3, with subsequent changes limited to clarification and rebasing.
Custom reloptions for table AM
30 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: Feature: Add reloption support for table access method (not this thread)
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #311 of 2 reviewers saw the final version

The commit exactly selects the reloptions component of #31, including tableam_reloptions dispatch, GetTableAmRoutineByAmOid and autovacuum integration; its patch header identifies Alexander as author. I disagree with attribution to thread #47821: its source #534369 dates from May 2023, whereas this matching March 2024 submission is later, although the commit acknowledges Hao Wu's prior work.

  • Reviewed-by: Pavel Borisovsaw the final versiontrailerChecked reloptions dispatch and redundant declarations in #19, then reviewed the revised validation and comments in #24.
  • Matthias van de Meentsaw an earlier versiontrailerQuestioned the original combined table/index-options interface and its documentation in #2, before those responsibilities were separated and revised.
Generalize relation analyze in table AM interface
30 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #311 of 2 reviewers saw the final version

Exactly selects the ANALYZE component of #31, introducing relation_analyze while keeping sampling in analyze.c and calling heap-specific block/tuple helpers.

  • Pavel Borisovsaw the final versiontrailerReviewed sampling-code movement in #20, its revision in #24, and the final placement and include cleanup in #27.
  • Matthias van de Meentsaw an earlier versiontrailerRaised broad API-design and documentation objections to the initial series in #2, before the sampling implementation was substantially refactored.
Improve error message for tts_(virtual|minimal)_is_current_xact_tuple
25 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #211 of 1 reviewer saw the final version

Takes the error-message correction from #21 and applies it to both minimal and virtual slots in execTuples.c; the attachment's comment additions landed separately.

  • Alexander Korotkovsaw the final versioncommittercommitted the patch
Add comments on some MinimalTupleSlots methods usage
25 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #211 of 1 reviewer saw the final version

Exactly takes the two MinimalTupleSlot comment additions from #21, omitting its error-message change for a separate commit.

  • Alexander Korotkovsaw the final versioncommittercommitted the patch
Add TupleTableSlotOps.is_current_xact_tuple() method
21 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #182 of 5 reviewers saw the final version

Selects the TupleTableSlotOps.is_current_xact_tuple component of #18, with whitespace and minor comment grammar changes in execTuples.c and tuptable.h.

  • Matthias van de Meentsaw an earlier versiontrailerProposed moving the current-transaction check from TableAmRoutine to the slot API in #2, before that architectural change was implemented.
  • Mark Dilgerno review foundtrailerHis comments in #3 and #5 concern upsert executor state, insertion-control documentation and reloptions tests, not the current-transaction slot method.
  • Pavel Borisovsaw the final versiontrailerReviewed the original method in #10 and its slot-based replacement in #15, requesting assertion and comment improvements.
  • Nikita Malakhovno review foundtrailerHis only technical response, #8, concerns the cache-freeing callback rather than this slot method.
  • Japin Lisaw the final versiontrailerCompiled the full series and reported missing ANALYZE headers in #17, although he made no slot-method-specific comments.
Allow table AM tuple_insert() method to return the different slot
21 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #183 of 5 reviewers saw the final version

Selects the replacement-slot tuple_insert component of #18, preserving its executable changes and polishing the return-value documentation in tableam.h.

  • Matthias van de Meentsaw the final versiontrailerCalled the replacement-slot proposal reasonable in #2, and its implementation subsequently received only light changes.
  • Mark Dilgerno review foundtrailerHis review in #3 addresses other interfaces and does not evaluate replacement-slot returns.
  • Pavel Borisovsaw the final versiontrailerQuestioned replacing the executor's slot in #10 and #11, then explicitly rechecked it and found it safe in #15.
  • Nikita Malakhovno review foundtrailerHis discussion in #8 is confined to cache cleanup and provides no review of replacement slots.
  • Japin Lisaw the final versiontrailerReported compilation results for the full series in #17, with the identified problems confined to ANALYZE includes.
Allow table AM to store complex data structures in rd_amcache
21 Mar 2024Alexander Korotkovmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #184 of 5 reviewers saw the final version

Selects the complex-rd_amcache component of #18, removes the redundant release_rd_amcache() forwarding wrapper, and clarifies the callback's freeing and NULL-setting contract.

  • Matthias van de Meentsaw the final versiontrailerQuestioned allowing arbitrary multi-chunk caches in #2; the eventual implementation retained the design with only assertion, wrapper and documentation changes.
  • Mark Dilgerno review foundtrailerNo cache-callback review appears in his messages #3 and #5.
  • Pavel Borisovsaw the final versiontrailerReviewed the callback and requested a post-cleanup assertion in #7, then endorsed the updated implementation in #15.
  • Nikita Malakhovsaw the final versiontrailerDiscussed assertion and error-reporting safety for the freeing callback in #8, including its possible use in uninterruptible code.
  • Japin Lisaw the final versiontrailerCompiled the full series and supplied the resulting missing-header report in #17, without cache-specific objections.

Credits across 18 commits

Author
Alexander KorotkovLLM9
Pavel Borisov2
Reviewer
Matthias van de Meent7
Pavel Borisov6
Mark Dilger4
Japin Li3
Nikita Malakhov3
Alexander Korotkovcommitter2
Reviewed-by: Pavel Borisov2
Jess Davis1
Reported by
Andres Freund1
Jeff Davis1
Matthias van de Meent1
Committer
Alexander Korotkov18

N LLM means N of the credits come from LLM analysis, not from commit trailers.