model-writtenrun 4769 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Sep 2021 - May 2022 · 17 entries
- Fabrice Chapuis reported logical-replication timeouts on PostgreSQL 10.18 in #1 and narrowed the trigger to a large load into an unpublished table in #5.
- Amit Kapila supplied diagnostic keepalive logging in #15; after months of reproduction work, he identified decoding and discarding large transactions without communication as the likely cause and proposed progress calls from pgoutput_change in #30.
- Wang wei's first functional patch #35 still timed out, while his expanded experiment #37 showed that sender timestamps remained stale during the skip loop; Fabrice confirmed the alternative timing worked in #38 and suggested processing replies in #39.
- Amit proposed an explicit keepalive flag and a skipped-change threshold in #40, leading Wang to introduce independent keepalive timing in #41 and timeout-scaled counting in #44 to limit overhead.
- Ajin Cherian requested DDL, truncate and unpublished-table coverage in #48, while threshold discussions favored a conservative fixed count; Wang introduced a shared helper and broader coverage in #52.
- Hayato Kuroda found an omitted nonpublishable-relation path and unnecessary output-state manipulation, while Ajin found a counter reset before row filtering; Wang addressed these issues across #55, #59 and #63.
- Masahiko Sawada challenged timeout behavior and proposed reusing existing reply and keepalive machinery in #67 and #70; Wang adopted that approach with a measured hundred-change threshold in #74.
- Amit objected to calling plugin progress logic directly from reorder-buffer invalidation handling in #76 and recommended postponing DDL support for a smaller backpatch in #77, so #78 removed that part.
- Amit supplied #79, restoring accidentally omitted truncate and message handling, moving the helper into pgoutput.c and refining its API; subsequent revisions added sequence coverage and adapted to newly landed skipped-transaction infrastructure through #91.
- Sawada's maintainability concerns in #94 and Euler Taveira's callback discussion in #96 and #98 led to #100, which counted every processed change instead of maintaining separate checks at each skipped-action exit.
- The simplified interface in #103 exposed inaccurate lag tracking, so Wang restored an end_xact distinction in #106 to keep lag samples at transaction boundaries while permitting intermediate keepalives.
- Sawada and Euler refined naming, conditions and comments in #109 and #110, and Euler proposed storing end_xact in LogicalDecodingContext to avoid changing public callback signatures in stable branches.
- After Wang demonstrated a padding-based backbranch adaptation in #119, Sawada warned about platform-dependent padding in #120; #124 adopted the context-field approach for HEAD and moved threshold counting into OutputPluginUpdateProgress, followed by branch variants in #127.
- Hou Zhijie identified that thresholding the public OutputPluginUpdateProgress function would change existing plugin behavior in #128, so Amit restored threshold counting to a private pgoutput helper in #134.
- Wang supplied formatted development and backbranch patches in #136, Sawada approved them in #138, and Euler reported successful HEAD testing in #139.
- A timing-dependent regression test was left out because it could be unstable across machines or require excessive runtime, as Amit and Wang explained in #140 and #141.
- Amit landed the transaction-timeout fix as f95d53eded from the final submission #136, with the available preceding patch confirming unchanged implementation apart from formatting, and announced the push in #142; the fix was backpatched through PostgreSQL 10.
Oct - Nov 2022 · 3 entries
- Fabrice reopened the problem in #143 because refreshing large materialized views still caused timeouts on PostgreSQL 14.4 despite the first fix.
- Wang diagnosed rewrite-generated data bypassing pgoutput and supplied a reorder-buffer-level draft in #144, which Fabrice confirmed eliminated his timeout in #147.
- Wang developed that draft into #148, moving periodic keepalive attempts from pgoutput's per-change callbacks into transaction replay so changes never delivered to the plugin were covered.
Jan - Mar 2023 · 12 entries
- Ashutosh Bapat successfully tested the follow-up and questioned its counting and lag behavior in #149, while Amit retained the measured hundred-change threshold and requested proper callback layering in #150.
- Wang introduced an optional output-plugin callback in #152, but Ashutosh argued in #154 that plugins omitting it would retain the timeout problem.
- Amit required an error-context wrapper in #155 and #157, leading Wang to replace the optional plugin API with a core reorder-buffer callback in #158.
- Ashutosh's naming feedback, Peter Smith's implementation review and Amit's threshold-placement advice led to the renamed callback and caller-side counting in #166; Hou contributed a revised patch and reproducer in #171, followed by Peter's approval of #173 in #174.
- Amit added nontransactional-message handling in #175, but Hou explained in #176 that those messages already return to the keepalive-capable sender loop, so Wang removed the extra handling and reported a successful mixed-message test in #178.
- Shi yu found a missing counter reset in #179, fixed by #180; further revisions moved counting back into transaction replay in #182 and made the counter transaction-local in #183.
- Amit polished the final patch in #184, while Ashutosh argued for backpatching because affected customers accumulated large WAL backlogs in #185; Amit declined because adding the callback changed an exposed structure, explaining the compatibility risk in #186 and #190.
- 8c58624df4 landed the implementation from #184 with only a commit-message clarification, crediting Wang wei and Hou Zhijie and fixing large-DDL timeouts on the development branch without backpatching.
- After that commit, Andres Freund argued in #192 and #194 that progress tracking and keepalive handling should belong to generic decoding infrastructure, and questioned the sender functions' responsibilities and names.
- Andres also questioned synchronous-replication gating in #195 and supplied a rough architectural prototype as a text attachment in #196, raising unresolved issues around lag tracking, filtering, streaming aborts and timeout checks.
- Amit responded in #197 that a generic redesign must still cover rewrite data bypassing plugin callbacks and preserve lag behavior, then raised plugin compatibility and empty prepared-transaction concerns in #198.
- At the thread's end, Wang explained in #200 that the architectural redesign had moved to a separate thread and requested that the commitfest entry follow it; both timeout fixes had landed, while the broader redesign remained ongoing.