model-writtenrun 6965 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Viktor Holmberg opened the thread with ON CONFLICT DO SELECT for idempotent get-or-create operations, extending inherited work with partition support, isolation and RLS tests, documentation, and an executor-state rename #1.
- After a month, Dean Rasheed rebased and renumbered the submission so CI would recognize it, preserving its behavior #2.
- Dean advised keeping the executor-state rename with the feature because it had little independent value, and Viktor's next revision fixed updatable views and rejected exclusion constraints to avoid committing to multiple returned rows for one proposed insertion #5 #6.
- Dean consolidated the implementation and supplied executor deduplication, naming, and comment improvements while retaining the same design #7.
- Marko Tiikkaja and Andreas Karlsson clarified the feature's origins, and the participants agreed to credit Andreas, Marko, and Viktor as authors #10 #12 #14 #15 #16 #18.
- Jian He supplied partition and permission tests, found documentation omissions, and exercised the lock-and-retry path; Viktor incorporated those changes and revised RETURNING handling #13 #17 #19.
- Two follow-up revisions resolved GCC's uninitialized-lockmode warning by ultimately restoring a default error branch in the lock-strength switch #20 #21.
- Jian then supplied injection-point tests for concurrent update/delete retries, but Dean argued that broader executor race testing belonged in separate work; Viktor retained the other fixes and omitted the injection-point experiment #22 #23 #25.
- Dean identified that the deferrable-constraint restriction already applied to every ON CONFLICT action, proposed a separate backpatchable correction, and Viktor removed the feature patch's narrower wording #24 #25.
- Jian strengthened the RLS tests to distinguish SELECT and UPDATE policies, and Viktor incorporated them with corrected examples and locking comments while leaving broader ruleutils spacing cleanup outside this feature #26 #27.
- The inline deferrable-constraint correction from Dean's review landed on December 9 as ae627d8a3c, fixing the restriction and standardizing the word 'arbiters' #24.
- Further review added tableoid and trigger coverage and adapted arbiter-index handling to upstream changes, but the resulting revision incorrectly placed tuple fetching inside Assert #28 #29.
- After the holiday gap, Jian caught the release-build problem and supplied more view tests; Viktor squashed the series and moved tuple fetching outside the assertion #31 #32.
- Jian's next reviews found remaining release-build and SGML issues and clarified RLS behavior; Viktor switched failed tuple fetching to an explicit error and documented that locking checks UPDATE USING policies rather than UPDATE WITH CHECK policies #34 #35 #36.
- Jian approved the revised feature and marked it ready for a committer, after which Viktor clarified its Read Committed insert-or-return guarantee in the MVCC documentation #37 #38.
- Dean's final review split out two existing documentation bugs, replaced ExecProcessReturning's command-type parameter with isDelete, restored explanatory rule-error detail, and consolidated permission, RLS, trigger, and view tests #39.
- Dean also removed the pgrowlocks tests because their maintenance cost exceeded their additional coverage, while preserving other locking tests #39.
- Viktor accepted Dean's changes but questioned setting p_is_insert for DO SELECT, prompting Dean to restore the narrower assignment and improve the conflict-action and locking documentation #40 #41.
- The two documentation components of #39 landed unchanged as 227a6ea657 and bc953bf523, and Dean confirmed their backpatching before resending the remaining feature #41.
- Viktor then proposed eliminating p_is_insert entirely because exprKind already supplied the information, and Dean verified and endorsed the separate cleanup #42 #43.
- The cleanup component of #42 landed first as 706cadde32, with minor tidying and a stronger assertion, followed by the feature component as 88327092ff, adapted to that ordering and given its required catalog-version bump.
- Dean's final message confirmed the push, leaving the feature, parser cleanup, and three documentation corrections committed; the broader injection-point testing remained outside the delivered work #45 #23.