model-writtenrun 3671 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot proposed disabling autovacuum and retrying vacuum before checking standby logical-slot invalidation, skipping assertions if dead rows remained, in #1.
- Following Andres Freund's suggestion, Bertrand replaced retries and skipped assertions with a wait for an advanced snapshot horizon before vacuuming in #2, retaining verbose vacuum output for diagnosis.
- After a gap of more than seven months, Alexander Lakhin reported that FREEZE alone did not prevent failures and that the horizon-wait patch improved stability but still left active-slot failures in #3; his subsequent logs implicated unexpected RUNNING_XACTS records in #6.
- Alexander supplied backend diagnostic instrumentation and a reproducible pruning failure in #8, showing that background-writer snapshots could advance an active slot's catalog_xmin beyond the conflict horizon.
- Bertrand proposed bypassing active-slot checks during pruning in #9 and separately identified a race between terminating a slot's backend and marking the slot obsolete; that backend issue was subsequently directed to a dedicated thread in #14.
- After Alexander reproduced another failure in #10 and Michael Paquier suggested retries in #11, Bertrand changed the horizon helper to avoid txid_current() and its extra commit record in #12, but Alexander still reproduced a failure in #13.
- Michael discussed suspending the background writer or adding a developer setting to suppress snapshot records in #15, while Tom Lane questioned whether suppression would hide real-world behavior in #16.
- Bertrand narrowed the patch to vacuum stabilization in #18, capturing the snapshot horizon before the SQL workload and restoring the existing active-slot pruning checks, while acknowledging that controlling background-writer snapshots remained unresolved.
- Alexander supplied a working Windows process-suspension experiment in #19, but later concluded that controlling the background writer was a broader issue and recommended landing the vacuum fix first after 60 successful stress-test iterations in #20.
- Bertrand corrected scenario comments in #21, then expanded the helper documentation in #23 following Michael's review in #22; aligning the separate recovery-conflict test was deferred.
- Michael committed #23 as 46d8587b50 with light comment and formatting edits and backpatched it through PostgreSQL 16, confirming in #24 that background-writer snapshot races remained outside the landed fix.
- Bertrand proposed monitoring stability and fixing related issues before suppressing background-writer activity in #25, citing the risk of hiding useful bug detection.
- Alexander reopened the remaining issue in June with a slow Windows buildfarm failure and matching local reproductions in #26; Bertrand proposed injection points around RUNNING_XACTS generation in #27, Michael supported the idea in #28, and Bertrand committed to investigating it in #29, leaving that follow-up unresolved.