model-writtenrun 785 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ante Krešić reported that REPLICA IDENTITY USING INDEX accepted columns with unvalidated NOT NULL constraints, potentially causing replication divergence, and supplied a constraint-validation check with regression tests #1.
- Aleksander Alekseev confirmed that the patch looked good after running regression tests and testing under Valgrind #2.
- Masahiko Sawada proposed extracting a shared function to check NOT NULL validation status #3; Chao Li separately drew attention to an existing partition-index replica-identity bug, without submitting a patch for it here #4.
- Álvaro Herrera initially supported a shared helper #5, then deferred broader integration with verifyNotNullPKCompatible to PostgreSQL 20 so this backpatchable fix could remain small #6.
- Álvaro requested a shorter primary error with the constraint and column information in DETAIL #7, and Ante submitted a rebased revision adopting that wording while leaving refactoring for future work #8.
- Solai v reproduced the original failure, verified that the revised patch correctly rejected the index, and reported that regression tests passed #9.
- Álvaro committed the revised patch with only declaration-scope and comment cleanup as 864ef0fb1c, then confirmed that it had been pushed to all three branches #10.
- The fix was landed at the thread's end, but Álvaro requested a follow-up pg_upgrade --check safeguard for PostgreSQL 18 installations that already had invalid replica identities; no implementation of that safeguard appears in the thread #10.