model-writtenrun 3014 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mihail Nikalayeu reported that ReindexRelationConcurrently checked uninitialized expression and predicate caches, incorrectly classifying indexes as safe #1.
- Mihail Nikalayeu submitted an injection-point isolation reproducer and a fix that calls RelationGetIndexExpressions and RelationGetIndexPredicate before determining safety #1.
- Michael Paquier confirmed that concurrent rebuilds involving expressions or predicates must remain visible to other concurrent jobs so those jobs wait appropriately #3.
- Michael Paquier supported the accessor calls and proposed replacing the isolation test with a single-session SQL test using notice-producing injection points; the last thread message left that revision pending #3.
- Michael Paquier subsequently committed the submitted fix with a rewritten regression test covering both safe and unsafe indexes, backpatching the fix through PostgreSQL 14 and the injection-point tests through PostgreSQL 17 5bbdfa8a18.