Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4e4c0d6

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 9bb2ce5 commit 4e4c0d6

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
@@ -6464,7 +6464,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
64646464
<para>
64656465
If one of the list items is the special name
64666466
<literal>$user</literal>, then the schema having the name returned by
6467-
<function>SESSION_USER</function> is substituted, if there is such a schema
6467+
<function>CURRENT_USER</function> is substituted, if there is such a schema
64686468
and the user has <literal>USAGE</literal> permission for it.
64696469
(If not, <literal>$user</literal> is ignored.)
64706470
</para>

0 commit comments

Comments
 (0)