model-writtenrun 6036 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas relayed Andrew B's off-list report of a snapshot leak warning after lo_export() failed inside a subtransaction, and proposed short-lived allocations plus a long_lived option to distinguish persistent descriptors, with backpatching to all supported versions #1.
- Alvaro Herrera suggested using the existing flags argument instead of changing the inv_open() ABI #2.
- Heikki rejected mixing an internal lifetime flag with user-visible read/write flags and submitted a replacement that moved snapshot lifetime management into callers, preserving the inv_open() signature while making its returned descriptors short-lived by default #3.
- Alvaro agreed that an internal flag would make the API awkward and explicitly endorsed the revised approach #4.
- Heikki committed the revised patch with only comment polishing as 6b1b405ebf, backpatched the fix to supported branches, and closed the thread by announcing the push and thanking the reviewer and reporter #5.