pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Atkins <steve@blighty.com>
To: PostgreSQL General <pgsql-general@postgresql.org>
Subject: Re: Connection type
Date: Thu, 18 Jan 2018 16:19:10 +0000
Message-ID: <4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com> (raw)
In-Reply-To: <7f772655-3f83-17b2-d0f8-1c129d2a0d78@nbsgroup.it>
References: <7f772655-3f83-17b2-d0f8-1c129d2a0d78@nbsgroup.it>


> 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





view thread (3+ messages)  latest in thread

Message-ID: <4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com>
Permalink:  ../4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com/
Also on:    postgresql.org/message-id/4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: steve@blighty.com
  Subject: Re: Connection type
  In-Reply-To: <4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com>
  References: <7f772655-3f83-17b2-d0f8-1c129d2a0d78@nbsgroup.it> <4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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