doc: Add note about "Client User" and "Superuser" fields in \conninfo output.
authorFujii Masao <[email protected]>
Sat, 14 Jun 2025 01:39:26 +0000 (10:39 +0900)
committerFujii Masao <[email protected]>
Sat, 14 Jun 2025 01:39:26 +0000 (10:39 +0900)
commit0fe50417eca46d6993da350845dc09d7e899c6d6
tree99111a0aeb16aeb9c85ec7192072e83370d20fe9
parentbe37ac20fc23511c49b9c56567c7c707b73d10b0
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 <[email protected]>
Reviewed-by: Robert Treat <[email protected]>
Reviewed-by: David G. Johnston <[email protected]>
Discussion: https://postgr.es/m/685961b8-b6ce-40bb-b2d5-c2ff135d3388@oss.nttdata.com
doc/src/sgml/ref/psql-ref.sgml