model-writtenrun 7195 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis proposed forcing pg_catalog, pg_temp during maintenance to ensure consistent results and prevent users with MAINTAIN privileges from escalating to table owners, initially leaving CREATE MATERIALIZED VIEW unchanged because restricting its search path could place the new object in the wrong schema #1.
- Greg Stark and Nathan Bossart accepted the compatibility cost for functions relying on ambient search_path, recommending explicit function settings or qualified references and favoring consistent behavior even when maintenance runs as the owner #2 #3.
- Jeff committed the original patch unchanged as 05e1737351 and announced the landing in #4.
- Gurjeet Singh warned that introducing the breaking change late in the release cycle could disrupt urgent maintenance and requested an escape hatch; Jeff acknowledged the risk, identifying materialized-view refresh as particularly exposed #5 #6.
- By July, the search-path change and MAINTAIN privilege had been reverted from PostgreSQL 16, and Jeff resubmitted the same implementation on a newer base to address index consistency and enable MAINTAIN safely #7.
- Isaac Morland proposed upgrade-time adjustments and capturing search_path when functions are defined; Jeff rejected solving this during upgrade, explored broader configuration-dependency syntax, and then favored proceeding with maintenance-specific restrictions because broader alternatives lacked agreement #8 #9 #10.
- Gurjeet clarified that his objection concerned release timing and the lack of an escape hatch, while David G. Johnston preferred limiting the change to MAINTAIN; Jeff retained the broader scope, and Noah Misch and Nathan supported proceeding based on the manageable disruption from earlier search-path security fixes #11 #12 #15 #16 #17.
- Jeff revised the patch to restrict search_path during CREATE MATERIALIZED VIEW, preserve the destination schema during creation, and use a RestrictSearchPath() wrapper with GUC_ACTION_SAVE to fix parallel-worker execution, adding documentation and materialized-view tests #19.
- Noah explained that switching security context immediately after locking relations provided tested protection and future-proofing, so Jeff retained the corresponding early search-path restrictions and planned to commit after further feedback #20 #21.
- In October, Jeff reopened the design question because broader function-level restrictions had not gained consensus and MAINTAIN remained blocked; Nathan favored landing the maintenance-specific patch early in the PostgreSQL 17 cycle #22 #23.
- Isaac suggested using the table owner's configured search_path, which Jeff initially found promising, while discussion also revisited capturing search_path at function creation; Tom Lane objected to application and dump/restore compatibility problems, and Jeff ultimately rejected owner-based paths because they added complexity and could include historically writable public schemas #24 #25 #26 #27 #28 #29.
- After Shubham Khanna reported that the latest patch no longer applied to src/bin/scripts/t/100_vacuumdb.pl, Jeff withdrew it from the commitfest pending clearer agreement on the approach, leaving the proposal withdrawn at the last supplied message #30 #31.
- The subsequent March 5, 2024 landing 2af07e2f74 belongs to the continuation in thread #49196, whose supplied verdict identifies the newer matching patch #555068 with light documentation and test changes; this supersedes the earlier attribution to #7, while the CREATE MATERIALIZED VIEW restriction and GUC_ACTION_SAVE wrapper from #19 are absent from that commit.