model-writtenrun 7066 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C opened the thread with a two-patch proposal based on earlier work by Amit Kapila: skip publications absent from the decoding snapshot and expose that behavior through a default-off subscription option, preventing permanent worker restart loops after SET PUBLICATION while acknowledging that changes made during a publication's absence would be skipped #1.
- Vignesh completed the option's documentation, dump support, psql display and tests in #2; after nearly a year, Amit reopened the performance question in #3, and Vignesh supplied a rebased series and measurements in #4.
- Amit requested measurements focused on logical decoding in #5, and Vignesh refined the benchmark through #6 and #7, eventually finding an approximately 9–16 percent slowdown and introducing publication-list comparison to avoid unnecessary relation-cache rebuilding.
- Amit's cache-state review in #8 led to a separate invalidation flag in #9, reducing the measured overhead to below one percent; Vignesh then removed the extra flag and relied on existing publication invalidation in #10.
- Amit reopened the choice between an option and default skipping in #11; Masahiko Sawada argued that stopping replication could lose additional changes during recovery in #12, and Amit agreed to proceed without the option, leaving it available as a future addition if needed #13.
- Dilip Kumar questioned whether the fix should be backpatched in #15, but Amit favored development-branch testing because it changed behavior and lacked field reports #16, a position Masahiko supported in #21.
- Dilip requested a behavioral test in #17, prompting Vignesh to add a drop/recreate test and explanatory warning in #18; Dilip then requested the actual SET PUBLICATION-before-creation scenario in #20, which replaced the earlier test in #22.
- Dilip's review of the explanatory comment and warning in #23 led to discussion of when REFRESH PUBLICATION is needed in #24 and #25, after which Amit supplied wording suitable for pgoutput API users and separated the warning detail from its hint in #26.
- After Dilip approved the final wording in #27, Amit landed #26 unchanged as 7c99dc587a and announced the commit in #28; the configurable option was left out and the behavior change was not backpatched.
- Although thread #45974 also claims 7c99dc587a through its earlier proposal #507544, the exact matching final patch #26 establishes this thread as the landing source.
- Tom Lane reopened the thread after Xuneng Zhou noticed repeated CI timeouts waiting for the new warning, initially suggesting that the test recorded its log offset too late #29.
- Amit instead identified a race in which the old walsender could decode the inserted row and receive confirmation before restarting, so the replacement sender would never encounter the row that should trigger the warning #30; Vignesh reproduced that sequence and posted a test fix waiting for the replacement walsender #31.
- When Tom and Xuneng could not reproduce the failure easily #32 #33, Vignesh supplied a debugger-controlled invalidation bypass in #34, then replaced that diagnostic approach with a one-second apply-loop delay and logging in #40.
- Xuneng and Tom questioned whether the race required a production fix in #35, #36, #38 and #39; Vignesh explained the asynchronous decoding and feedback sequence in #37, and Amit distinguished target-table DDL protection from stronger cross-node ordering guarantees in #41.
- Xuneng proposed handling invalidations before keepalive replies to improve warning reliability in #42, but Amit explained that concurrent inserts still prevented a general warning guarantee in #43 and proposed proceeding with the test-only fix in #44.
- Xuneng reproduced the failure using the delay and reported that the fix worked in #45, then accepted the test-only approach with qualifications in #47; Amit committed #31 unchanged as 8ede692de5 and confirmed the push in the final message #48.
- The thread ended with default publication skipping and its test synchronization fix landed, while the diagnostic instrumentation remained uncommitted and the broader keepalive-ordering discussion produced no additional production change #34 #40 #41 #48.