model-writtenrun 7014 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Sep - Dec 2024 · 10 entries
- Hou opened the thread with a proposal to distinguish an update targeting a deleted row from an update targeting a missing row, retaining dead tuples through bidirectional feedback_slots so future conflict resolution could make the correct choice #1.
- Shveta exposed configuration and multi-publisher limitations in the feedback design, while Amit proposed timestamp-based VACUUM retention and Masahiko questioned its pruning costs and correctness #8 #10 #13 #17 #19.
- Hou posted the independent vacuum_committs_age experiment but reported substantial VACUUM overhead and unresolved frozen-XID and commit-timestamp retention problems, then shifted to the subscriber-slot approach discussed with Amit and Masahiko #31 #20 #22 #30.
- The replacement design used one launcher-owned physical slot on the subscriber, aggregating retention horizons from apply workers communicating over their existing connections; its first implementation also introduced the subscription control #32.
- Hayato's proposed index lookup was incorporated, but his REINDEX CONCURRENTLY reproduction and Nisha's assertion report exposed correctness problems, causing Hou to restore sequential scans and defer the optimization #35 #36 #43 #44 #46.
- Stale standby replay positions and timestamp-versus-WAL ordering exposed flaws in using a publisher LSN alone, leading Hou to introduce a transaction-aware status exchange and then wait specifically for transactions in their commit-critical sections #37 #39 #56 #62.
- The protocol gained DELAY_CHKPT_IN_COMMIT, clearer state transitions, and leader-only request handling through repeated review and Amit's attached fixups #64 #65 #73 #74 #75.
- Hayato and Nisha measured the cost of retained dead tuples, and adaptive polling reduced losses in subscriber-only workloads, although concurrent publisher and subscriber workloads still suffered substantial slowdown #82 #81 #88.
- Nisha's timestamp-only and blocking-walsender experiments failed to eliminate the slowdown, with the latter also hurting publisher throughput, so those benchmark alternatives were not adopted #88 #103.
- Hou added a clock-skew waiting proposal, extended commit-phase handling to prepared transactions, and renamed the control retain_conflict_info as discussion established that retention also protects origin and commit-timestamp information #90 #113 #114.
Jan - Apr 2025 · 5 entries
- Masahiko identified delays caused by busy apply workers and launcher sleep, and Hayato supplied a complete series with wakeup and flush-position improvements that Hou subsequently folded into the main implementation #133 #136 #143.
- Longer benchmarks showed severe lag-driven retention costs, prompting a maximum retention duration; the initial forced-xmin advancement approach was replaced with observable slot invalidation after Amit's feedback #138 #143 #145 #152.
- Masahiko and Amit favored automatic recovery when lag subsided, and Hou added slot recreation once a worker returned within the retention limit #150 #151 #157.
- Because one shared slot could remain pinned by another subscription, Masahiko questioned a per-subscription limit, and the series temporarily switched to a global GUC before a release-cycle deferral and rebase #158 #167 #173 #174 #175.
- Review resumed with Shveta removing unnecessary launcher polling, Nisha finding a timeout path that could be bypassed, and Hayato requesting upgrade coverage; Hou incorporated these improvements together #177 #179 #176 #180.
May - Jun 2025 · 3 entries
- Further protocol review led to full transaction IDs in status messages and clearer commit-timestamp assumptions, while more elaborate transaction-list optimizations were rejected as additional complexity and overhead #197 #198 #206 #211 #214.
- Amit identified races when changing retention on a running subscription, so Hou restricted changes to stopped subscriptions and retained a separate experimental patch for safely relaxing that restriction #222 #224 #227.
- The foundational worker, launcher, subscription, upgrade, and test changes were progressively consolidated; review also removed unnecessary slot saves and closed an upgrade startup gap by creating the conflict slot before it was needed #232 #238 #239 #242 #245 #251.
Jul 2025 · 7 entries
- Dilip identified missing memory barriers around commit-phase signaling, and Hou subsequently found and fixed an omitted effective_xmin assignment that otherwise retained tuples until restart #257 #261 #264.
- Hou and Nisha demonstrated that cascading replication cannot preserve information reliably for origins beyond the immediate publisher, leading to explicit warnings and documentation of that limitation #270.
- Performance discussion established that lag and workload placement were central tradeoffs: distributing work across subscriptions and testing multiple publishers produced better results, and Masahiko accepted shipping the mechanism as an opt-in feature with clear documentation #285 #286 #292 #294.
- After Masahiko's cleanup and final review, Nisha forwarded Hou's update excluding unrelated databases from transaction tracking; this became the preservation foundation with only comment and catalog-version edits #296 #301 #304 228c370868.
- Hou then resent the uncommitted detection, timeout, and recovery components, prioritizing detection and explicitly postponing support for changing retention on enabled subscriptions #306.
- Amit revived index-based detection with an age check that ensures the index predates the retention horizon, and Hou implemented both scan paths while ensuring the newest relevant deletion is selected #308 #311.
- The discussion kept same-origin selective-replication cases classified as update_missing because reliable retention could not be guaranteed, while reviews refined scan cleanup, tablesync handling, and statistics before the detector component landed with a catalog-version bump #310 #314 #318 #331 fd5a1a0c3e.
Aug 2025 · 4 entries
- For the remaining timeout work, Hou abandoned whole-slot invalidation because slot validity could not describe each worker's retention status, replacing it with an invalid xmin and a revised recovery mechanism #336.
- Amit and Dilip reconsidered the global limit in light of differing subscription workloads, and Hou restored a per-subscription timeout option #334 #337 #341.
- Masahiko exposed unwanted retention resumption after restart, and discussion with Amit and Dilip led to persistent pg_subscription.subretentionactive state rather than relying solely on worker memory #357 #359 #360 #364.
- Shveta's and Nisha's tests uncovered resumption, warning, and launcher defects; the resulting revisions added manual slot recovery and bounded apply-loop waits before the timeout component landed with light edits, leaving automatic resumption and monitoring separate #365 #366 #393 #395 #397 a850be2fe6.
Sep 2025 · 8 entries
- While implementing a race test requested by Robert, Hou discovered that publisher tracking omitted backends executing COMMIT PREPARED; Shveta reviewed the fix, and its revised implementation from #403 landed unchanged as part of 1f7e9ba3ac, alongside launcher-wakeup and empty-subscription retention corrections from #599805 in thread #52177, with the launcher defect originally reported here by Nisha #401 #402 #392 #396.
- Amit found that the prepared-transaction test did not reliably fail without the fix, so Hou strengthened its synchronization and moved it into 035_conflicts.pl before it landed with a comment correction #405 #407 6456c6e2c4.
- Tom's Coverity report identified an unchecked leader-worker lookup, and Shveta reproduced the tablesync crash during DROP SUBSCRIPTION and supplied the NULL guard that landed with a nearby comment improvement #404 #406 5ac3c1ac22.
- A buildfarm failure showed that the prepared-transaction test could proceed before its injection point was reached; Hou added an explicit event wait, Shveta approved it, and that patch landed unchanged #415 #416 01d793698f.
- Automatic resumption initially coordinated xmin initialization between launcher and worker, but Amit, Dilip, and Masahiko favored restarting the worker to avoid complicated synchronization, and Hou rewrote the remaining patch accordingly #411 #414 #417 #418 #419.
- Shveta then found a stale-worker access window, which Hou fixed under LogicalRepWorkerLock; final phase-handling and diagnostic cleanup produced the automatic-resumption patch that landed unchanged #421 #422 #425 #426 0d48d393d4.
- Amit diagnosed a VACUUM assertion failing under cleanup-lock contention, and Hou found a second timing assumption in the resumption test; removing the unreliable assertion and ordering configuration changes correctly produced the final test fix, with Shveta's explanatory comment incorporated #428 #429 #430 #431 0f42206531.
- The last message confirms that final fix was pushed, completing preservation, detection, timeout control, automatic resumption, and the reported follow-up fixes; the separate monitoring-column proposal had disappeared from later submissions, and live retention-option changes remained deferred #432 #408 #412 #306 #418.