Re: pg_stat_activity.client_addr sometimes null for host connections - Mailing list pgsql-admin

From Erik Wienhold
Subject Re: pg_stat_activity.client_addr sometimes null for host connections
Date
Msg-id 106621723.1703032.1683247644104@office.mailbox.org
Whole thread Raw
In response to Re: pg_stat_activity.client_addr sometimes null for host connections  (Rui DeSousa <rui@crazybean.net>)
List 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 by date:

Previous
From: Rui DeSousa
Date:
Subject: Re: pg_stat_activity.client_addr sometimes null for host connections
Next
From: ?????????? RMUTT CPE IX
Date:
Subject: How to bring Pgpool-II virtual IP up?