model-writtenrun 567 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nitin Motiani proposed preserving indimmediate when copying indexes so REINDEX CONCURRENTLY would not prematurely enforce deferred unique constraints, with an isolation test demonstrating the problem #1.
- Alvaro Herrera tested the patch and found that passing constraint flags without creating a constraint triggered an assertion in index_create() #2; Nitin subsequently introduced a separate index-creation flag, preserving the constraint-flags contract instead of weakening the assertion #4.
- Michael Paquier accepted the new flag as a backpatchable solution #5, then supplied a revision that simplified its name to INDEX_CREATE_DEFERRABLE and replaced potentially unstable polling with a two-session injection-point test #6.
- Michael committed the final attached patch unchanged as 74276e685d, crediting Nitin as author and backpatching the fix through PostgreSQL 14; his announcement cautioned that the test backports to versions 17–19 might encounter transaction-context limitations in injection-point waits #7.
- The submitted fix had landed when Nitin thanked Michael and asked whether a closely related scenario from the original bug report also deserved investigation; that follow-up question remained unanswered at the end of the thread #8.