Re: pg_stat_activity.client_addr sometimes null for host connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 05/05/2023 01:54 CEST Rui DeSousa <rui@xxxxxxxxxxxxx> 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





[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux