Re: Who am I? Where am I connected?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Who am I? Where am I connected?
Date: 2022-05-18 22:37:55
Message-ID: bc7e0ae1-019f-affb-4978-869be88f63b4@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/18/22 14:59, Dominique Devienne wrote:
>

>
> 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.
>

Not all clients use libpq e.g. the Postgres JDBC driver. It just uses
the Postgres Frontend/Backend protocol:

https://www.postgresql.org/docs/current/protocol.html

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message itman73 2022-05-18 22:40:44 switchover and switchback assistance ...
Previous Message Dominique Devienne 2022-05-18 21:59:23 Re: Who am I? Where am I connected?