model-writtenrun 3604 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Corey Huinker proposed documenting CTEs, ctid self-joins, and SKIP LOCKED as techniques for batching large UPDATE and DELETE operations without adding a LIMIT clause, initially supplying examples in three command reference pages #1.
- jian he questioned the explanation of partial operations #3, while Laurenz Albe requested consistent SQL formatting, clearer resource and deadlock reasoning, vacuuming guidance, and consolidation of redundant examples #4.
- Corey incorporated formatting and workload explanations but initially retained all three examples for discoverability #5; Laurenz continued to argue for less duplication and clearer explanations of ordering, locking, and vacuuming #6.
- Corey then removed the SELECT documentation changes, concentrated the detailed explanation in UPDATE, and retained a linked DELETE example because its join syntax differs #8.
- Laurenz supported the revised organization and requested small editorial changes #9; Corey applied those changes while defending the separate DELETE example #10, after which Laurenz offered to mark the patch ready for a committer #11.
- Joel Jacobson reopened the broader question of demand for UPDATE/DELETE LIMIT #14; Corey explained that documenting the workaround addressed practical replica-lag and workload concerns without implementing nonstandard syntax #15, and Joel confirmed his experience with primary-key batching while welcoming the ctid technique #16.
- Tom Lane committed the final attachment #10 as 2daeba6a4e, correcting example details and polishing the explanations of repetition, deadlocks, SKIP LOCKED, and ctid efficiency; his closing announcement confirms the documentation landed with additional wordsmithing #18.