postgres.git / summary / log / commit / refs
commit 773e2d29cd63e2946d200dc5960a3ffb31910fe7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Dec 20 18:55:11 2018 +0000
First released in: 12.0, 9.4.21, 9.5.16, 9.6.12, 10.7, 11.2
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
doc/src/sgml/config.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 32830e09cc1..685c75ddc2b 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -5370,7 +5370,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<para>
If one of the list items is the special name
<literal>$user</literal>, then the schema having the name returned by
- <function>SESSION_USER</> is substituted, if there is such a schema
+ <function>CURRENT_USER</> is substituted, if there is such a schema
and the user has <literal>USAGE</> permission for it.
(If not, <literal>$user</literal> is ignored.)
</para>
[parent: ef673a32d3d7]