pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection type
3+ messages / 2 participants
[nested] [flat]
* Connection type
@ 2018-01-18 16:06 Enrico Pirozzi <e.pirozzi@nbsgroup.it>
0 siblings, 1 reply; 3+ messages in thread
From: Enrico Pirozzi @ 2018-01-18 16:06 UTC (permalink / raw)
To: pgsql-general
Hi,
is there a way to know what kind of connection a client is doing?
(ODBC,JDBC..etc)
I saw the pg_stat_activity view,
but in the application name field there no infomation about
what kind of connection a client is doing.
Thanks
Enrico
e.pirozzi@nbsgroup.it
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Connection type
@ 2018-01-18 16:19 Steve Atkins <steve@blighty.com>
parent: Enrico Pirozzi <e.pirozzi@nbsgroup.it>
0 siblings, 1 reply; 3+ messages in thread
From: Steve Atkins @ 2018-01-18 16:19 UTC (permalink / raw)
To: pgsql-general
> On Jan 18, 2018, at 4:06 PM, Enrico Pirozzi <e.pirozzi@nbsgroup.it> wrote:
>
> Hi,
>
> is there a way to know what kind of connection a client is doing? (ODBC,JDBC..etc)
>
> I saw the pg_stat_activity view,
>
>
> but in the application name field there no infomation about
> what kind of connection a client is doing.
No. They're all exactly the same as far as postgresql is concerned all speaking the
same postgresql native protocol, or close enough. The ODBC / JDBC / libpq difference
is purely on the client side.
A client can voluntarily set the application_name, e.g. as part of it's connection string,
to identify itself to the server, if you want to be able to identify which sort of client
is connected easily.
Cheers,
Steve
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Connection type
@ 2018-01-18 16:34 Enrico Pirozzi <e.pirozzi@nbsgroup.it>
parent: Steve Atkins <steve@blighty.com>
0 siblings, 0 replies; 3+ messages in thread
From: Enrico Pirozzi @ 2018-01-18 16:34 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Il 18/01/2018 17:19, Steve Atkins ha scritto:
> A client can voluntarily set the application_name, e.g. as part of it's connection string,
> to identify itself to the server, if you want to be able to identify which sort of client
> is connected easily.
Thank you very much :)
Regards
Enrico
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-01-18 16:34 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-18 16:06 Connection type Enrico Pirozzi <e.pirozzi@nbsgroup.it>
2018-01-18 16:19 ` Steve Atkins <steve@blighty.com>
2018-01-18 16:34 ` Enrico Pirozzi <e.pirozzi@nbsgroup.it>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox