model-writtenrun 5878 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhijie Hou reported that adding a primary key using an existing index on NOT NULL columns left the table's relcache stale, causing published-table UPDATE and DELETE failures, and supplied a conditional invalidation fix with decoding and subscription tests in #1.
- Euler Taveira reviewed the patch, suggested checking indisprimary directly, and questioned redundant tests and the cost of creating additional publisher/subscriber instances in #2.
- Julien Rouhaud identified an expected-output typo, noted that the remaining regression tests appeared to pass, and requested an updated patch addressing the outstanding feedback in #3.
- Tom Lane committed #1 as d8fbbb925b, retaining its conditional invalidation logic with cosmetic adjustments and replacing the proposed tests with a smaller publication regression test; the commit called for backpatching through PostgreSQL 11.
- Tom Lane confirmed the push in #4, explaining that the flag avoids unnecessary cache flushes and that the original reproduction provided sufficient, cheaper regression coverage, leaving the fix landed with no further work identified.