model-writtenrun 8415 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dilip Kumar reported an assertion failure when configuring a logical-replication subscriber with REPLICA IDENTITY FULL for cascading replication and supplied a patch removing the assertion in #1; Justin Pryzby confirmed the bug affected versions back to PostgreSQL 10 in #2.
- Masahiko Sawada recommended correcting the assertion instead of deleting it in #3, explaining that restricting lookup to the replica-identity index could unnecessarily force sequential scans despite an available primary key.
- Euler Taveira supplied a replacement fix and regression test in #4, retaining the assertion by moving GetRelationIdentityOrPK() into relcache.c so the assertion could use the same index-selection helper as the replication worker.
- Michael Paquier objected to exporting the helper and proposed direct checks in #5; Euler adopted that simplification in #7, preserving the test, and Dilip endorsed retaining the assertion in #8.
- Masahiko's proposed explanatory-comment change in #6 was left out: Euler considered the existing comment adequate in #7, and Michael agreed while posting parentheses and formatting cleanup in #9, which Euler accepted in #10.
- Michael committed 7ccb2f54d9 from #9, adding only a test setup statement that also sets REPLICA IDENTITY FULL on the publisher, and confirmed application and backpatching through PostgreSQL 10 in #11, leaving no outstanding patch work.