Re: Who am I? Where am I connected? - Mailing list pgsql-general

From Tom Lane
Subject Re: Who am I? Where am I connected?
Date
Msg-id 63571.1652915567@sss.pgh.pa.us
Whole thread Raw
In response to Re: Who am I? Where am I connected?  (Dominique Devienne <ddevienne@gmail.com>)
List pgsql-general
Dominique Devienne <ddevienne@gmail.com> writes:
> AFAIK, it’s not psql that does this though, it’s libpq the official client
> api.
> And the fact libpq has no way to surface that info seems like an important
> oversight.

PQconninfo() will show you all the option values in use by a connection
object.  It's true that it's not very easy to tell where any given value
came from, but I doubt it'd be worth an ABI break to add such info.
(You could at least recognize values that match the hard-wired default
or environment variable value.)

            regards, tom lane



pgsql-general by date:

Previous
From: itman73@protonmail.com
Date:
Subject: switchover and switchback assistance ...
Next
From: 菊池祐
Date:
Subject: About pg_basebackup