model-writtenrun 2941 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Usamoi reported a PostgreSQL 17 regression where CREATE INDEX on a partitioned table could not resolve an unqualified extension opclass, tracing the failure to restricted search_path during recursive DefineIndex calls #1.
- David Rowley initially treated schema qualification as required by the new secure search_path behavior #2, but Tom Lane argued that repeated opclass lookup under different search paths was a bug with security implications #3.
- Tom demonstrated with contrib/cube that adding a partition after creating an index worked while creating the index over existing partitions failed, establishing that command operands should resolve consistently using the caller's search path #4.
- Tom's patch reused generateClonedIndexStmt to produce search-path-independent child index statements, also fixing unintended propagation of parent-index comments; he left the choice of an additional regression-test location open #5.
- Noah Misch recommended a contrib regression test using a real opclass, arguing that test fidelity justified placing it outside the core suite #6.
- Tom committed the patch with added contrib/seg tests as fee8cb9473 and confirmed completion #7; the fix was backpatched to PostgreSQL 17, while older branches were excluded because their known benefit was only the minor comment-propagation fix.