model-writtenrun 3661 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fei Changhong reported a logical-decoding relation lookup failure when a catalog-changing subtransaction's WAL preceded the restart position, but its parent's commit followed it; the parent's existing catalog-change flag incorrectly caused subtransaction checks to be skipped #1.
- Fei supplied a fix removing that early exit and adding an isolation test, explaining that conservatively including subtransactions without catalog changes was harmless for snapshots used only to read system catalogs #2; Andy Fan reviewed the patch positively #3.
- Amit Kapila identified PostgreSQL 14 and 15 as the affected branches because earlier versions already marked subtransactions conservatively and later versions serialized catalog-changing transaction IDs accurately #4; Fei verified versions 11 through 16 #5, and Hayato Kuroda independently reproduced the affected-version pattern and tested the fix on PostgreSQL 14 #6.
- Amit retained the fix but revised the test to perform the insert in session s0 and decode after its transaction committed, also improving comments #7; Hayato confirmed the revision passed on PostgreSQL 14 and 15 and requested clearer commit-message wording #8.
- Fei clarified that the original test intentionally inserted from session s1 but used a misleading step name, and accepted Amit's revised test #9; Amit agreed to replace 'restart' with 'decoding' before committing #10.
- Amit committed the revised patch with only commit-message edits as 6b77048e57, with the fix landing for PostgreSQL 14 and 15, and closed the thread by announcing it had been pushed #11.