Skip to content

Commit 42bdf85

Browse files
committed
Doc: fix ancient mistake in search_path documentation.
"$user" in a search_path string is replaced by CURRENT_USER not SESSION_USER. (It actually was SESSION_USER in the initial implementation, but we changed it shortly later, and evidently forgot to fix the docs to match.) Noted by antonov@stdpr.ru Discussion: https://postgr.es/m/159151fb45d490c8d31ea9707e9ba99d@stdpr.ru
1 parent 216af5e commit 42bdf85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7066,7 +7066,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
70667066
<para>
70677067
If one of the list items is the special name
70687068
<literal>$user</literal>, then the schema having the name returned by
7069-
<function>SESSION_USER</function> is substituted, if there is such a schema
7069+
<function>CURRENT_USER</function> is substituted, if there is such a schema
70707070
and the user has <literal>USAGE</literal> permission for it.
70717071
(If not, <literal>$user</literal> is ignored.)
70727072
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy