Re: Who am I? Where am I connected?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Who am I? Where am I connected?
Дата
Msg-id 63571.1652915567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Who am I? Where am I connected?  (Dominique Devienne <ddevienne@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: itman73@protonmail.com
Дата:
Сообщение: switchover and switchback assistance ...
Следующее
От: 菊池祐
Дата:
Сообщение: About pg_basebackup