Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecCuP-0007ro-PA for pgsql-general@arkaria.postgresql.org; Thu, 18 Jan 2018 16:19:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecCuP-000546-36 for pgsql-general@arkaria.postgresql.org; Thu, 18 Jan 2018 16:19:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ecCuO-00053W-O6 for pgsql-general@lists.postgresql.org; Thu, 18 Jan 2018 16:19:20 +0000 Received: from mail.wordtothewise.com ([2001:470:1:6d::9a]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ecCuL-0007RJ-GR for pgsql-general@postgresql.org; Thu, 18 Jan 2018 16:19:19 +0000 Received: from [192.168.10.113] (unknown [37.228.247.44]) by mail.wordtothewise.com (Postfix) with ESMTPSA id 5640A23379 for ; Thu, 18 Jan 2018 08:20:01 -0800 (PST) From: Steve Atkins Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Connection type Date: Thu, 18 Jan 2018 16:19:10 +0000 References: <7f772655-3f83-17b2-d0f8-1c129d2a0d78@nbsgroup.it> To: PostgreSQL General In-Reply-To: <7f772655-3f83-17b2-d0f8-1c129d2a0d78@nbsgroup.it> Message-Id: <4F75C783-571E-4091-B343-4A14AFD14E1E@blighty.com> X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jan 18, 2018, at 4:06 PM, Enrico Pirozzi = wrote: >=20 > Hi, >=20 > is there a way to know what kind of connection a client is doing? = (ODBC,JDBC..etc) >=20 > I saw the pg_stat_activity view,=20 >=20 >=20 > but in the application name field there no infomation about=20 > 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