From: | Christoph Moench-Tegeder <cmt(at)burggraben(dot)net> |
---|---|
To: | Dominique Devienne <ddevienne(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Who am I? Where am I connected? |
Date: | 2022-05-18 10:32:50 |
Message-ID: | YoTLUsgOC0HV8LsE@elch.exwg.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
## Dominique Devienne (ddevienne(at)gmail(dot)com):
> Once connected, can I find out all aspects of the connection string?
\conninfo in psql (pro tip: \? actually helps), "Connection Status
Functions" https://www.postgresql.org/docs/current/libpq-status.html
in libpq; and in a pinch you could find your connection in
pg_stat_activity (pid = pg_backend_pid()) plus some assorted queries
for other details. You cannot get actual secrets like your private
ssl key or your password (the server most likely doesn't have that,
and the client assumes that you have it).
Regards,
Christoph
--
Spare Space
From | Date | Subject | |
---|---|---|---|
Next Message | Wiwwo Staff | 2022-05-18 14:07:31 | show primary_conninfo unchanged after promotion? |
Previous Message | Ganesh Korde | 2022-05-18 10:30:21 | Re: Who am I? Where am I connected? |