pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Wienhold <ewie@ewie.name>
To: Hrishikesh (Richie) Rode <hrode@livevox.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Rag Krishnan <rkrishnan@livevox.com>
Subject: Re: Drivers users by connections
Date: Tue, 6 Jun 2023 13:20:47 +0200 (CEST)
Message-ID: <747443146.893352.1686050447046@office.mailbox.org> (raw)
In-Reply-To: <DM6PR04MB42358ACBF685FC41CA188DE8B652A@DM6PR04MB4235.namprd04.prod.outlook.com>
References: <DM6PR04MB4235D8CB62D9ACBAD2EB4B29B652A@DM6PR04MB4235.namprd04.prod.outlook.com>
	<DM6PR04MB42358ACBF685FC41CA188DE8B652A@DM6PR04MB4235.namprd04.prod.outlook.com>

> On 06/06/2023 09:18 CEST Hrishikesh (Richie) Rode <hrode@livevox.com> wrote:
>
> We are not able to find table which give session connection details about
> drivers. In pg_stat_activity details information is not there. Please let us
> know where we can find these information.

Column pg_stat_activity.application_name is the only one I know of that may
provide such details.  But it relies on the driver setting application_name
when connecting.  Some drivers set a default, e.g. pgjdbc, but also allow
overriding with a custom application name that may include additional info
such as driver version.  But in the end application_name is just text without
any inherent structure.

--
Erik





view thread (2+ messages)

Message-ID: <747443146.893352.1686050447046@office.mailbox.org>
Permalink:  ../747443146.893352.1686050447046@office.mailbox.org/
Also on:    postgresql.org/message-id/747443146.893352.1686050447046@office.mailbox.org

 · 

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: ewie@ewie.name, hrode@livevox.com, rkrishnan@livevox.com
  Subject: Re: Drivers users by connections
  In-Reply-To: <747443146.893352.1686050447046@office.mailbox.org>
  References: <DM6PR04MB4235D8CB62D9ACBAD2EB4B29B652A@DM6PR04MB4235.namprd04.prod.outlook.com> <DM6PR04MB42358ACBF685FC41CA188DE8B652A@DM6PR04MB4235.namprd04.prod.outlook.com> <747443146.893352.1686050447046@office.mailbox.org>

* 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