diff options
author | Nathan Bossart | 2024-09-27 21:21:21 +0000 |
---|---|---|
committer | Nathan Bossart | 2024-09-27 21:21:21 +0000 |
commit | 18cea252ac74c185f754b3f0007921e7955ed1d6 (patch) | |
tree | 9ab9d00f0ecf1971f3781490cdba9d31d3a928fe /doc | |
parent | 1532599a854a7bf0e102d708a288ff96d2722218 (diff) |
doc: Note that CREATE MATERIALIZED VIEW restricts search_path.
Since v17, CREATE MATERIALIZED VIEW has set search_path to
"pg_catalog, pg_temp" while running the query. The docs for the
other commands that restrict search_path mention it, but the page
for CREATE MATERIALIZED VIEW does not. Fix that.
Oversight in commit 4b74ebf726.
Author: Yugo Nagata
Reviewed-by: Jeff Davis
Discussion: https://postgr.es/m/20240805160502.d2a4975802a832b1e04afb80%40sraoss.co.jp
Backpatch-through: 17
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/sgml/ref/create_materialized_view.sgml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_materialized_view.sgml b/doc/src/sgml/ref/create_materialized_view.sgml index 0d2fea2b97f..62d897931c3 100644 --- a/doc/src/sgml/ref/create_materialized_view.sgml +++ b/doc/src/sgml/ref/create_materialized_view.sgml @@ -143,7 +143,9 @@ CREATE MATERIALIZED VIEW [ IF NOT EXISTS ] <replaceable>table_name</replaceable> A <link linkend="sql-select"><command>SELECT</command></link>, <link linkend="sql-table"><command>TABLE</command></link>, or <link linkend="sql-values"><command>VALUES</command></link> command. This query will run within a security-restricted operation; in particular, calls to functions that - themselves create temporary tables will fail. + themselves create temporary tables will fail. Also, while the query is + running, the <xref linkend="guc-search-path"/> is temporarily changed to + <literal>pg_catalog, pg_temp</literal>. </para> </listitem> </varlistentry> |