model-writtenrun 1496 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Dec 2024 - Feb 2025 · 6 entries
- Masahiko Sawada began with explicit SQL activation and deactivation of logical decoding at wal_level=replica, aiming to avoid both a server restart and permanent logical-WAL overhead; the prototype waited for existing transactions and propagated decoding status through WAL #1.
- Bertrand Drouvot proposed making logical-slot creation and deletion drive activation automatically #2, while Ashutosh Bapat questioned duplicate transaction waits and mixed WAL generation #5 and Peter Smith reviewed state handling, effective-level visibility and critical-section protection #7.
- Standby-only decoding emerged as an important constraint because the primary might have no logical consumers but still need to generate logical WAL for downstream servers #21.
- Sawada explored process barriers and reloadable configuration #23, then introduced a dedicated background worker to coordinate every WAL-level transition, including checkpoints and termination of incompatible replication or archiving activity #26.
- Hayato Kuroda tested the worker prototype and found WAL and transition problems #28, supplied a check-hook delta #30, and received feedback that the proposed sender check could still race newly starting walsenders #31.
- Following Bertrand's proposal for guaranteed worker capacity #33, Sawada split the implementation into reserved worker slots, generic bgtask infrastructure and WAL-level changes #36, which Bertrand reviewed favorably #37.
Apr - Jul 2025 · 4 entries
- After a lengthy design interval, Sawada questioned the cost of supporting transitions to and from minimal WAL #39, and Amit Kapila advocated automatic slot-driven activation while retaining explicitly configured logical WAL and proposed unreserved slots for standby-only use #40 #50.
- The June rewrite replaced the worker infrastructure with logicalctl.c, automatic slot-presence activation and a read-only effective_wal_level setting #57; Shveta Malik's standby and cascading-replication findings led to corrected promotion and standby behavior #59 #61 #62.
- Concerns about accidentally consuming an unreserved slot led to a special persistent activation slot managed by SQL functions #66 #75 #88, but Amit argued for a simpler interface and Sawada dropped that optional feature from the main series #100 #104.
- Shveta's concurrent creation/deletion tests and Hayato's promotion-race analysis drove locking revisions and a shared recovery-completion delay flag, followed by further retry fixes, documentation and integrated tests #103 #109 #112 #118 #121.
Aug - Sep 2025 · 5 entries
- Shlok Kyal tested concurrent permanent and temporary slots and physical replication #123, then found obsolete pg_createsubscriber settings and a postmaster restriction that still rejected slot synchronization at replica WAL #126 #132, leading to test cleanup and relaxed checks #127 #133.
- Sawada fixed an activation-abort race #135, while Hayato identified slotsync startup races and a promotion deadlock involving barrier processing #136 #151; the resulting revisions improved worker checks and interrupt handling while deferring dynamic slotsync shutdown #140 #154.
- Amit identified unnecessary duplication of snapshot building's transaction waits, and Ashutosh reviewed bootstrap and lifecycle semantics #166 #170; concerns about WAL writes and waits during exit callbacks led to checkpointer-driven deactivation for process exit #183.
- Shveta found that standby cleanup could leave pending deactivation requests set #184, prompting a corrected full patch that separated recovery checks from waiting #185.
- Sawada then supplied an experimental delta that removed lazy cleanup by permitting status-change WAL before recovery fully completed #189, but Hayato reproduced an assertion and another state race #192 #196, while Amit questioned the recovery-WAL exception #194.
Oct 2025 · 4 entries
- The experiment was abandoned after Sawada concluded asynchronous cleanup was still needed #197; Amit favored making every deactivation asynchronous for simplicity, and the next full revision delegated all deactivation to the checkpointer #198 #200.
- Shveta's promotion-window failure led to revised slot-creation checks #201 #203, and delayed slotsync startup led to a postmaster SIGUSR1 wakeup rather than configuration reloads or a new signaling interface #206 #223 #224.
- Peter Smith's implementation and test reviews improved diagnostics and coverage #208 #226, while Shveta's WAL-ordering and test-synchronization findings were incorporated before the next proposed landing #238 #240.
- Amit pointed out that invalidated slots should not keep logical WAL active #244, so Sawada added a separately reviewable invalidation extension and limited publication warnings to minimal WAL #245, then merged the extension into the main patch #268.
Nov 2025 - Jan 2026 · 10 entries
- Amit proposed simplifying promotion coordination #280, and successive fixups removed the status-change permission flag while correcting startup-versus-checkpointer behavior #281 #294 #296.
- Shveta and Hayato discovered that asynchronous toggling could change XLogLogicalInfoActive() between TRUNCATE checks and cause an assertion #284, creating a new requirement for consistent logging decisions within transactions.
- Shveta proposed replacing the transition-in-progress flag and condition variable with LWLock-protected transitions #297 #299, which Sawada implemented as another fixup #300; transaction-local caching was added separately and then consolidated after a benchmark found no noticeable regression #302 #306.
- Peter supplied an enum-based cache delta #326, but Sawada rejected that representation because it added a hot-path branch #327, while incorporating other review corrections into the next main revision #330.
- Shveta found standby replay ordering and decoding failures #331 #333, leading to restored status-update ordering, synchronized standby caches, a simpler cache implementation and a concurrent-activation fix #332 #341.
- Shveta then reproduced missing replicated rows when a transaction cached the old state before acquiring an XID #343; Amit proposed freezing the value only after XID assignment #346, and Sawada implemented that rule without making activation wait for every open read-only transaction #347.
- The final revision incorporated remaining guard, declaration, comment and rebase changes #352, received Shveta's LGTM and Peter's final-diff review #353 #354, and landed as 67c20979ce with only two comment corrections and the control-file version increment.
- Zhijie Hou reported a buildfarm failure because publication NOTICE tests still emitted an additional warning with wal_level=minimal, and supplied a repair using ALTER PUBLICATION to preserve coverage without configuration-dependent output #357; that exact diff landed as 0de5f0d869, with Sawada confirming successful testing #358.
- After landing, Matthias van de Meent objected that REPLICATION users could now impose logical-WAL overhead despite an administrator configuring replica WAL #359; Sawada and Ashutosh discussed opt-out configuration, a separate dynamic WAL level and privilege or slot limits, but no implementation of those alternatives was attached #360 #361 #366.
- Amit and Andres Freund argued that REPLICATION already grants powerful capabilities with system-wide performance consequences #362 #368 #370, while Matthias continued to request an administrator-controlled prohibition on automatic activation #369.
May - Jun 2026 · 1 entry
- Sawada ultimately proposed closing the remaining PostgreSQL 19 open item as a non-bug #374, Amit agreed #375, and Sawada recorded that closure in the last message #376; both commits remained landed, with no revert or replacement patch submitted in this thread.