model-writtenrun 1391 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun - Jul 2024 · 8 entries
- Amit Kapila opened the discussion by proposing alternatives to continuous WAL-based sequence replication, primarily to support major-version upgrades; Peter Eisentraut favored starting with an explicit synchronization command #1 #8.
- Ashutosh Bapat raised failover consistency concerns, while Amit kept the initial objective focused on upgrades and planned switchovers #12 #13 #20.
- Vignesh's first implementation copied sequence values synchronously during subscription commands, introduced pg_subscription_seq, and reused code from Tomas Vondra's earlier work #24.
- Masahiko Sawada proposed limiting the first implementation to ALL SEQUENCES, and Amul Sul questioned the separate subscriber catalog; Vignesh accepted splitting the series and using pg_subscription_rel #25 #30 #31 #32.
- Dilip Kumar challenged transactional sequence rollback through new relfilenodes, and Masahiko identified concurrent-refresh problems with a subscription-wide flag; the resulting design used per-sequence states and a dedicated worker processing batches of 100 #39 #45 #50 #51 #52.
- Shlok Kyal found repeated-worker crashes and misleading completion logs, while Peter Smith reviewed publication grammar, pg_dump, psql, and duplicated worker infrastructure; these drove the first stabilization rounds #56 #57 #59 #73.
- shveta malik demonstrated incorrect sequence advancement and subsequent is_called and range failures, leading to copying actual publisher state and correcting sequence-value handling #81 #86 #85 #94.
- Vignesh's separate benchmark compared batch sizes of 10, 100, and 1000 over 10,000 sequences and supported retaining batches of 100; its tuning patch remained an experimental top-up #98.
Aug 2024 - Mar 2025 · 4 entries
- The team retained apply-worker management of sequence synchronization after considering direct launcher management, and kept a distinct sequence-refresh operation rather than overloading copy_data semantics #101 #108 #112 #130.
- Peter requested dedicated documentation and shared synchronization infrastructure, producing a separate documentation patch and syncutils.c; the same period fixed a multi-subscription update failure and began fetching values and definitions together #126 #131 #140 #142 #143 #153.
- After repeated autumn and winter rebases, reviews refined psql output and extensible ALL TABLES, ALL SEQUENCES grammar, and Vignesh deferred the feature to the next release to leave room for current-release work #165 #176 #186 #188 #194.
- Hayato Kuroda's request to fetch sequence information in batches was eventually implemented, after which Nisha Moond and shveta found missing-sequence cursor errors and an infinite loop that the next revisions corrected #184 #215 #222 #223 #227.
Apr - Jul 2025 · 3 entries
- At Amit's request, Nisha split the refresh command from the sequence worker, then supplied a top-up improving error details and replacing repeated list scans with ordered matching; Vignesh merged that contribution #235 #236 #237 #238.
- Nisha, shveta, and Shlok tested publication alteration and publisher-version behavior, leading to grammar and compatibility fixes while individual-sequence and schema-level publication remained deferred #239 #241 #242 #248 #275.
- July review simplified worker launching and retry timing, and Amit redirected the SQL interface from a new pg_sequence_state function to an extension of existing pg_get_sequence_data #255 #268 #269 #270.
Aug - Sep 2025 · 4 entries
- Masahiko questioned compatibility with future WAL-ordered DDL replication, but the discussion retained asynchronous workers for independent retries and avoiding blocked table apply; he clarified that his concern did not demand an immediate redesign #295 #299 #304 #310.
- Amit separated publication membership refresh from sequence-value resynchronization and requested preserving the previous synchronization LSN, producing a revised command implementation and a separate REFRESH PUBLICATION terminology cleanup #305 #309.
- Hayato contributed a relation-query simplification and then found that ordered matching could fail under different collations, prompting hash-based matching; subsequent reviews corrected concurrent-rename and hash-scan failures #314 #315 #316 #317 #318 #334 #337.
- shveta exposed a remove-and-recreate race in subscription membership, and Vignesh fixed it by preventing the sequence worker from deleting pg_subscription_rel entries #340 #341.
Oct 2025 · 9 entries
- Michael Paquier and Amit argued that log_cnt was irrelevant across independent WAL streams, and Vignesh verified that upgrades do not preserve it; the reduced page-LSN extension in #346 landed with only a catalog-version addition as b93172ca59 #343 #344 #345.
- Publication review simplified error handling, psql footers, view placement, and option validation, and the standalone patch in #363 landed with a comment edit and catalog-version bump as 96b3784973 #349 #352.
- Peter proposed REFRESH SEQUENCES to distinguish refreshing known values from refreshing publication membership; Dilip and Amit agreed, and the remaining series adopted that spelling #372 #373 #374 #375.
- Hou Zhijie took over several revision rounds, correcting relation-kind and origin checks, and the terminology component of his submission landed as 2436b8c047, with credit shared with Vignesh #383 #392.
- The shared synchronization refactor was then reordered ahead of the remaining feature work and landed from Hou's revision as 41c674d2e3 #394 #398.
- The team retained replication slots and origins for sequence-only subscriptions because removing them would complicate apply-worker operation, and simplified sequence states back to INIT and READY #382 #399 #402.
- Masahiko's origin-check review led to separate table and sequence validation functions, Hayato fixed sanity and completion errors, and Amit supplied final cleanup and a copy_data guard; the command component of #425 landed as f0b3573c3a #413 #414 #418 #420.
- Amit requested a separate worker-type API patch, and Chao caught an unintended only_running behavior change; the corrected preparatory component of #440 landed as 3e8e05596a #426 #438.
- Hou replaced hash matching with list indexes carried through remote queries, but Amit identified a distributed-deadlock risk in holding local locks across remote queries; the implementation therefore fetched remotely before locking and revalidating local sequences #432 #444 #452 #456.
Nov 2025 - Jan 2026 · 9 entries
- Final review consolidated fetching and validation, improved missing/mismatched/permission diagnostics, and refined worker locking and memory ownership; Amit landed the worker component of #463 with minor test and other edits as 5509055d69 #455 #460 #462 #464.
- Immediately after landing, Vignesh reported a prion failure caused by verbose log output, while Shinya Kato found synchronization failures for quoted sequence names; their fixes were combined in #473 and landed unchanged as 5a4eba558a #466 #468 #471.
- The statistics component of #475 landed as f6a4c498dc, adding seq_sync_error_count after shveta and Peter reviewed the tests; Amit retained fixed view-column offsets, and renaming the existing counter was deferred #465 #470 #477.
- Shlok found an unused CREATE PUBLICATION grammar assignment, then added Amit's requested grammar-symbol rename; the revised patch landed unchanged as bfb7419b0b #479 #481 #482.
- Peter, shveta, and Chao refined synchronization documentation, worker limits, LSN caveats, and examples; the final documentation in #485 landed with light editorial changes as 55cefadde8 #459 #476 #484.
- In December, Shlok identified unnecessary table-specific work for sequence-only publications, prompting an optimization and macro revision, but Amit judged the additional checks unjustified without a demonstrated field problem; Shlok supplied a comment-only alternative #486 #487 #492 #495 #496.
- A January fairywren failure exposed an assertion when concurrent DROP made pg_get_sequence_data return NULL; Alexander Lakhin narrowed the regression, Hayato explained the changed return behavior, and Amit requested checking only the first nullable state field #497 #499 #500 #502.
- Vignesh's final fix distinguished a missing publisher sequence from a concurrently dropped subscriber sequence, Hayato verified it, and #504 landed unchanged as 1ba3eee89a #505 #506.
- At the final acknowledgement, the core feature and all twelve candidate changes had landed with no revert reported; the comment-only clarification had no recorded landing, while granular publication selection and automatic periodic synchronization remained future work #507 #496 #275 #443.