model-writtenrun 9642 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nikita Glukhov proposed fixing missing Python API checks and reference cleanup in jsonb_plpython, describing failures as likely confined to out-of-memory cases and requesting a PostgreSQL 11 backpatch #1.
- Michael Paquier questioned volatile declarations and raised a related ltree_plpython error-checking concern #2; Nikita explained which pointer variables actually change inside PG_TRY and proposed a broader registry for automatic Python-object cleanup #3.
- Michael accepted the pointer-volatility clarification, favored keeping the bug fix focused, and identified returns inside PG_TRY as unsafe because they bypass restoration of the error stack #4.
- Michael supplied a revised patch that reworked reference cleanup, replaced unsafe returns with breaks, dropped additional runtime checks he considered unnecessary, and fixed hstore_plpython cleanup too; he recommended applying it only to the development branch because the failures were unlikely in practice #5.
- Tom Lane adapted Michael's revision to intervening volatile-qualifier changes and made further local corrections before committing 9e360f0e83 from #5; he announced the push and agreed against backpatching #6, and Michael's acknowledgment closed the thread with the revised fix landed #7.