pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ahsan Hadi <ahsan.hadi@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Add session statistics to pg_stat_database
Date: Tue, 11 Aug 2020 13:53:42 +0200
Message-ID: <68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at> (raw)
In-Reply-To: <CA+9bhC+pGpp9xezwk-maOWmOCNg-0xm5OnPSSMmb2S=n7fTwMA@mail.gmail.com>
References: <b07e1f9953701b90c66ed368656f2aef40cac4fb.camel@cybertec.at>
	<CA+9bhC+pGpp9xezwk-maOWmOCNg-0xm5OnPSSMmb2S=n7fTwMA@mail.gmail.com>

On Thu, 2020-07-23 at 18:16 +0500, Ahsan Hadi wrote:
> On Wed, Jul 8, 2020 at 4:17 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> > Here is a patch that adds the following to pg_stat_database:
> > - number of connections
> 
> Is it expected behaviour to not count idle connections? The connection is included after it is aborted but not while it was idle.

Thanks for looking.

Currently, the patch counts connections when they close.
I could change the behavior that they are counted immediately.

Yours,
Laurenz Albe






view thread (34+ messages)  latest in thread

Message-ID: <68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at>
Permalink:  ../68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at/
Also on:    postgresql.org/message-id/68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at

 · 

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-hackers@postgresql.org
  Cc: laurenz.albe@cybertec.at, ahsan.hadi@gmail.com
  Subject: Re: Add session statistics to pg_stat_database
  In-Reply-To: <68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at>
  References: <b07e1f9953701b90c66ed368656f2aef40cac4fb.camel@cybertec.at> <CA+9bhC+pGpp9xezwk-maOWmOCNg-0xm5OnPSSMmb2S=n7fTwMA@mail.gmail.com> <68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at>

* 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