model-writtenrun 513 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Niall Newman reported a production pgstats garbage-collection crash after a caught DSM attachment error and supplied an RFC plus a deterministic fault-injection test that passed with the fixes and crashed without them; file-descriptor exhaustion remained a suspected initiating cause #1.
- Michael Paquier split out the missing local-reference cleanup after DSA allocation failure as 4069df21be, preserving the RFC’s cleanup order and backpatching through PostgreSQL 15 #2.
- Michael also extracted the reference-initialization ordering fix as bf80a4c2d2, keeping it on the development branch because the interrupt-triggered reference leak had a very narrow failure window #2.
- Michael considered the defensive garbage-collection change unnecessary and deferred DSM attachment cleanup to a separate discussion because it affects DSA/DSM users more broadly; those changes and the companion test did not land in the supplied commits #2.
- Michael proposed a separate development-branch improvement using the OOM-safe shared-hash insertion API to remove a local reference before raising an allocation error #2, which landed unchanged as 127ce77698.
- In the final message, Michael explained that the shared-hash insertion failure could also cause a later garbage-collection crash when another backend changes the shared entry; the three targeted pgstats fixes had landed, while the broader DSM recovery question remained deferred #3.