model-writtenrun 7131 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis reopened the MAINTAIN discussion in #1, explaining that caller-controlled search_path could corrupt index behavior and asking whether restricting maintenance commands would resolve the concerns behind the previous release-cycle revert.
- Nathan Bossart reported support for restricting search_path in #2 and posted a separate MAINTAIN and pg_maintain restoration patch for CI in #3; none of the supplied candidate commits represents that privilege-restoration patch.
- Jeff revived the maintenance search_path patch in #4, including amcheck changes that required comparator functions to declare their own search_path when resolving application functions.
- Nathan's questions in #5 led Jeff to replace bootstrap cache-initialization changes with explicit bootstrap guards in #6, while retaining PGC_S_SESSION so function SET clauses could still override the maintenance setting.
- Nathan raised temporary-schema risks and requested per-command documentation in #7; Jeff explained the pg_temp ordering constraint and discussed a shared RestrictSearchPath() helper in #8, leaving complete pg_temp exclusion unresolved.
- Jeff committed #6 as 2af07e2f74 with additional documentation and regression tests, then explained in #9 that affected index and materialized-view functions would need explicit SET search_path clauses.
- Noah Misch's audit in #10 found missing restrictions after GUC nesting resets in index creation and inconsistent materialized-view creation behavior; Michael Paquier raised extension guidance concerns in #11, and Jeff posted the four-call fix in #12.
- After discussing creation-namespace constraints with Noah in #13, Jeff expanded the fix in #14 so materialized views were created without data and populated through REFRESH, preserving the session search_path for relation creation.
- Noah identified the repeated relation-name lookup hazard in #15, prompting the RefreshMatViewByOid() extraction in #16, which he endorsed in #17.
- The two components of #16 landed separately as 8e28778ce3, containing the four unchanged restriction calls, and b4da732fd6, containing the materialized-view change with comment refinements; both were backpatched to PostgreSQL 17.
- Yugo Nagata began a cleanup round in #18, identifying an obsolete CREATE MATERIALIZED VIEW error-message branch and an unused ParamListInfo argument; Jeff recommended removing the argument from both refresh interfaces and suggested distinguishing CREATE from REFRESH in #19.
- Yugo's expanded series in #20 supplied those interface changes and additional refactoring, from which f683d3a4ca removed the unused parameters and ca2eea3ac8 added is_create with adjusted parameter ordering and caller integration.
- Jeff reported in #21 that EXPLAIN ANALYZE CREATE MATERIALIZED VIEW still uses intorel_startup(), making its proposed cleanup incorrect; Yugo removed that portion and resent the remaining refactoring in #22, deferring EXPLAIN consistency work to another thread.
- The reduced cleanup in #22 landed unchanged as 7926a9a80f, and Yugo acknowledged its landing before posting the missing CREATE MATERIALIZED VIEW documentation in #23.
- Nathan noticed the WITH NO DATA exception in #24, which Yugo incorporated in #25; Jeff then requested wording specifically about query execution in #27, leading Nathan to relocate and rewrite the note in #28.
- Jeff approved the final documentation in #29, and Nathan committed it as 18cea252ac with a PostgreSQL 17 backport, confirming completion in #30; the supplied thread leaves the separate EXPLAIN work and Yugo's cleanup-backport question from #22 without a recorded resolution.