model-writtenrun 7262 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anton A. Melnikov reported a repeating logical-replication worker crash when function creation raised an error in #1, then corrected an accidentally unrelated attachment with a fix that tolerated a missing ActivePortal in #2.
- Anton refreshed the fix and simplified its reproduction in #3, then added a standalone TAP test with publisher and subscriber nodes in #4.
- Tom Lane questioned whether workers should instead establish ActivePortal in #5; Anton explained their snapshot management and lack of original query text, then proposed bypassing query-text matching specifically in logical workers in #6.
- Alvaro Herrera questioned snapshot timing in #7, and Michael Paquier objected to coupling the low-level error-reporting function to logical workers in #8.
- Tom reconsidered in #9: a synthetic portal would lack expected executor structures, workers already managed snapshots, and internal-query error reporting was sufficient; his revised patch used a generic portal check and fixed the uninitialized fallback value.
- Amit Kapila approved the final fix but requested consideration of regression coverage in #10; Tom rejected the proposed test's setup cost and questioned its ability to distinguish an ordinary error from a crash in #11.
- The production fix from #9 landed unchanged as dea8349380, with backports through PostgreSQL 10 and no regression test; although thread #71444 also proposed a portal guard, this thread supplied the latest matching patchset.
- Anton resumed the remaining test work in #12, reusing nodes and checking the specific error message; after Tom maintained his cost objection in #13, Anton reduced the test to additional queries in an existing subscription scenario and moved broader test optimizations to a separate thread in #14.
- Andres Freund reported test timeouts across platforms in #15, and Anton supplied a rebase in #16 to resolve the changed placement context.
- Vignesh C identified a duplicate Perl variable declaration and requested a clearer comment in #17; Anton incorporated both changes in #18 and later resubmitted the same patch as ready for committer in #19.
- Tom remained opposed to the test in #20; after Anton requested clarification in #21, Tom explained that guarding against reintroducing a removed speculative assertion did not justify permanent test-suite cost in #22.
- Anton accepted that explanation and withdrew the test in #23, leaving the crash fix committed and the regression-test proposal abandoned.