model-writtenrun 7041 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jan - Mar 2024 · 3 entries
- Pavel Stehule opened the discussion by asking why VACUUM FULL lacked a concurrent mode, motivated by a customer shrinking a table from 140 GB to 20 GB after archiving data #1 #3.
- Álvaro Herrera proposed integrating an approach like pg_squeeze into core, initially limited to explicitly requested operations, and Pavel agreed that automatic scheduling could wait #4 #5.
- Antonin Houska offered an implementation based on an initial snapshot, logical decoding of concurrent changes, and a short exclusive lock for the storage swap, while highlighting tuple-visibility correctness and possible future reuse by ALTER TABLE #8.
Jul - Oct 2024 · 4 entries
- Antonin submitted the first concurrent VACUUM FULL and CLUSTER series in July 2024, including preparatory refactors and an optional logical-rewrite mapping patch that he already considered probably unnecessary #12.
- Kirill Reshke requested smaller reviewable pieces and concurrent-write tests, proposed an injection-point test, and questioned decoding overhead; Antonin retained logical decoding while explaining the corresponding application-side cost of triggers #16 #18 #20 #21.
- The next series separated snapshot conversion and visibility preservation, added injection-point regression tests, and introduced a limit on time spent holding the exclusive lock #24.
- Junwang Zhao found debug-build and Meson problems and then a more serious bug that modified tuple visibility directly on buffer pages; Antonin corrected the build issues, cleaned up concurrent-operation lifecycle handling, and copied tuples before changing their headers #25 #26 #27 #28 #29.
Dec 2024 - Apr 2025 · 13 entries
- After a quiet interval, Álvaro supplied a cleanup delta and challenged the make_new_heap() locking interface; Antonin incorporated the useful edits, withdrew that interface change, restricted concurrent command scope, and addressed forced-relcache-release failures #30 #31.
- The preparatory relation-reference refactor from #31 landed as cc811f92ba with small assertion, comment, and locking cleanups documented in #35, and Antonin rebased the remaining series without the committed prerequisite in #40.
- Álvaro questioned the VACUUM FULL CONCURRENTLY name, Pavel initially preferred familiar terminology, and Robert Treat argued that rewriting had uses beyond bloat removal and that CLUSTER was overloaded #32 #33 #42.
- A developer meeting settled on REPACK, with an index option replacing CLUSTER's ordering role and CONCURRENTLY selecting the online operation, while preserving existing commands and requesting investigation of transient logical decoding #45 #46 #47.
- The discussion resolved a row-lock concern through the final exclusive table lock, while Matthias van de Meent raised unlogged-table and long-lived-snapshot limitations; Álvaro favored deferring complex solutions, and Antonin explored avoiding unnecessary vacuum-horizon restrictions #48 #49 #50 #52 #53.
- Álvaro challenged saving and restoring progress state around subtransaction aborts, prompting Antonin to propose a dedicated ResourceOwner for planner locks while acknowledging that decoding still needed progress-state handling #54 #55 #56.
- Antonin first posted non-concurrent REPACK independently, incorporated Marcos Pegoraro's fillfactor clarification, and then merged it with the concurrent series and a new table-specific transient-decoding implementation #58 #59 #60.
- Álvaro maintained the series through two March rebases, checked compilation after each patch, and identified an EXEC_BACKEND failure involving an uninitialized shared hash table, while continuing to question the progress-state refactor #63 #69.
- Robert Haas rejected releasing and reacquiring table locks merely to avoid lock upgrades, because that introduced catalog revalidation and could still waste the entire operation; Antonin adopted lock upgrades and removed the catalog-change checking machinery #66 #70 #72 #73.
- The revised series also replaced progress-state copying with subtransaction handling and extracted relation rechecking, followed by fixes for NULL and prematurely closed index references exposed by forced relcache release #73 #74.
- Euler Taveira's detailed review of standalone REPACK led to translation-safe messages, clearer documentation and comments, test corrections, and follow-up simplification of grammar and progress reporting #75 #79 #80 #81.
- Antonin measured substantial decoding overhead from preserving tuple visibility, and Álvaro recommended deferring that complexity; the next full series removed visibility preservation and logical-rewrite mapping and explicitly documented concurrent REPACK as MVCC-unsafe #74 #77 #78 #81.
- Matheus Alcantara identified misleading descriptions of catch-up processing and exclusive-lock duration, and Antonin incorporated those documentation corrections into the simplified series #76 #82.
Jun - Jul 2025 · 5 entries
- After another gap, jian he tested standalone REPACK and found that all-table processing omitted materialized views, alongside missing logging classification and smaller grammar, completion, and documentation issues; Antonin fixed these and then rebased the series #83 #84 #85 #87.
- At the supplied thread's final message, only the preparatory refactor had landed: Álvaro was planning to unify CLUSTER parsing and execution under REPACK and support equivalent legacy command modes, while concurrent all-table processing remained outside the intended scope #88.
- The later standalone landing, ac58465e06, is attributed to the March 2026 submission #617452 in the continuation thread thread #51992, superseding the earlier attribution to #87; that thread records local changes to skipped-relation lock release, ANALYZE transactions, and partitioned-table errors.
- The later concurrent landing, 28d534e2ae, is attributed to the April 2026 submission #1000181 in thread #51992, superseding the earlier attribution to #87; that thread records local changes to tuple restoration, external-value validation, and worker helpers.
- The concurrent landing itself records remaining replication-slot scarcity, system-wide serialization during snapshot setup, and lock-upgrade deadlock risks as future work, so those limitations cannot be treated as resolved by 28d534e2ae.