model-writtenrun 7272 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Feb - Mar 2023 ยท 17 entries
- Michael Paquier reported a startup-process latch assertion during fast shutdown on curculio in #1, and Thomas Munro found similar failures consistently passing through proc_exit() in the startup SIGTERM handler in #3.
- Andres Freund identified that recovery-command refactoring had placed allocations, logging, and other unsafe work inside the immediate-exit window in #4; Tom Lane proposed restoring a window containing only system() as a stopgap in #5.
- Andres Freund and Robert Haas explored replacing system() with explicit subprocess management in #7, #8, and #9, while Tom Lane raised shell-location portability concerns in #10.
- Nathan Bossart supplied the narrow-window fix in #13, then implemented Tom Lane's integrated system() wrapper suggestion from #16 in #18; Robert Haas questioned its unexplained process restrictions and shutdown semantics in #19.
- Nathan Bossart investigated removing immediate exit from the SIGTERM handler and posted a replacement based on shutdown checks before and after restoration in #22, but Andres Freund explained in #26 that the child might never receive or obey SIGTERM, making that unsuitable as a general replacement.
- Andres Freund identified the separate root cause of the reported corruption in #23: a child forked inside system() inherits the handler, so parent and child can both clean up the same PGPROC; he proposed checking getpid() and using _exit() in the child, then requested additional defensive checks in #28.
- Nathan Bossart returned to the original narrow-window implementation in #35, adding separate child-process defenses and recovery-module shutdown checks; Andres Freund requested a diagnostic for the child exit path in #37.
- Broader concerns about recovery-command abstractions led Nathan Bossart to request a revert in #39, which Michael Paquier accepted in #40 and committed as 2f6e15ac93, announcing it in #44 so development and stable branches could share a simpler basis for fixing the older bug.
- The recovery-module discussion broadened to asynchronous restore and prefetching: Andres Freund argued for core support and richer callbacks in #43, while Robert Haas proposed letting modules control their processing loop in #48.
- Tom Lane opposed handing fundamental archiver control to extensions because future fixes would require third-party changes in #55; Nathan Bossart explored batched callbacks in #57, and Andres Freund suggested a dedicated restorer process while emphasizing timeline and recovery-state hazards in #58.
- Nathan Bossart posted the combined stopgap in #59, adapting the window fix to the reverted code, adding the requested stderr diagnostic, and omitting the separate recovery-module shutdown checks.
- The API debate remained unresolved: Robert Haas wanted support for concurrent operations within one process in #67, and Stephen Frost argued in #69 that concrete archive-library implementations should guide further interface changes.
- Michael Paquier redirected attention to the original failure and reproducibility in #70; Thomas Munro explained that a comprehensive latch-aware subprocess facility required longer-term work in #71 and encouraged the stopgap while suggesting a reproduction strategy in #73.
- Nathan Bossart moved the stopgap work to a new thread in #74, leaving its final review and landing outside the supplied messages.
- At the end of this thread, the refactoring revert had landed but the stopgap had moved elsewhere, and archive-module design remained disputed: Andres Freund proposed start/continue callbacks in #75, while Nathan Bossart and Robert Haas defended the existing module framework's practical benefits in #76 and #78.
- The supplied cross-thread verdict establishes that 8fb13dd6ab landed the window-narrowing component of the later submission #544180 in thread #47512 on October 16, 2023, superseding the previous attribution to this thread's precursor #59.
- The following day, 97550c0711 landed the child-process component of #544180 in thread #47512, including stronger runtime PID checks and a reusable signal-safe stderr writer added after this thread's #59, so both stopgap landings belong to the continuation thread.