model-writtenrun 8296 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley opened the thread with a reproducer showing foreign-key validation accessing an index before its pending rebuild, and proposed delaying validation only when a table rewrite was pending in #1.
- David retained that conditional approach in #2, revised a comment, and supplied patches covering supported branches back to PostgreSQL 9.5 while leaving unconditional deferral open for discussion.
- Simon Riggs argued in #3 that validation should consistently happen later in all cases and asked whether that change would have other effects.
- David committed an expanded version of #2 as f1fcf2d3b2, unconditionally moving foreign-key and CHECK validation to phase 3, adding CHECK regression coverage, and aligning inherited CHECK validation order with ADD CONSTRAINT.
- In the final message #4, David explained that he had discovered the same timing problem for CHECK constraints and confirmed that the fixes had been pushed back through PostgreSQL 9.5, leaving no pending patch in the thread.