Skip to content

Commit 0fe5041

Browse files
committed
doc: Add note about "Client User" and "Superuser" fields in \conninfo output.
In the \conninfo psql command, the "Client User" column shows the user who established the connection, while the "Superuser" column reflects whether the current user in the current execution context is a superuser. This means the users referred to in these columns can differ, for example, if the current user was changed with the SET ROLE command. This commit adds a note to the \conninfo documentation to clarify this behavior and avoid potential confusion. Author: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Robert Treat <rob@xzilla.net> Reviewed-by: David G. Johnston <david.g.johnston@gmail.com> Discussion: https://postgr.es/m/685961b8-b6ce-40bb-b2d5-c2ff135d3388@oss.nttdata.com
1 parent be37ac2 commit 0fe5041

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,15 @@ SELECT $1 \parse stmt1
11031103
Outputs information about the current database connection,
11041104
including TLS-related information if TLS is in use.
11051105
</para>
1106+
<para>
1107+
Note that the <structfield>Client User</structfield> field shows
1108+
the user at the time of connection, while the
1109+
<structfield>Superuser</structfield> field indicates whether
1110+
the current user (in the current execution context) has
1111+
superuser privileges. These users are usually the same, but they can
1112+
differ, for example, if the current user was changed with the
1113+
<command>SET ROLE</command> command.
1114+
</para>
11061115
</listitem>
11071116
</varlistentry>
11081117

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