Re: pg_stat_activity.client_addr sometimes null for host connections

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: pg_stat_activity.client_addr sometimes null for host connections
Дата
Msg-id 106621723.1703032.1683247644104@office.mailbox.org
обсуждение исходный текст
Ответ на Re: pg_stat_activity.client_addr sometimes null for host connections  (Rui DeSousa <rui@crazybean.net>)
Список pgsql-admin
> On 05/05/2023 01:54 CEST Rui DeSousa <rui@crazybean.net> wrote:
>
> Could it be that the process you are seeing is a parallel worker? That would
> not have client_addr populated as only the leader process has client_addr
> populated.

That's it.  They're indeed all parallel workers.  I didn't know that.  I always
found  datname is not null and usename is not null  to be sufficient for only
considering client connections.  Safes me a few keystrokes from now.

Thanks a lot!

--
Erik



В списке pgsql-admin по дате отправления:

Предыдущее
От: Rui DeSousa
Дата:
Сообщение: Re: pg_stat_activity.client_addr sometimes null for host connections
Следующее
От: ?????????? RMUTT CPE IX
Дата:
Сообщение: How to bring Pgpool-II virtual IP up?