pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Marqués <martin.marques@2ndquadrant.com>
To: Scot Kreienkamp <Scot.Kreienkamp@la-z-boy.com>
To: Nicola Contu <nicola.contu@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Alessandro Aste <Alessandro.aste@gtt.net>
Subject: Re: Pgbouncer discard all
Date: Tue, 16 Oct 2018 11:22:04 -0300
Message-ID: <f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.com> (raw)
In-Reply-To: <17082AAFC33A934082836458CB53494374D3C416@MONDB03.na.lzb.hq>
References: <CAMTZZh35FFGnOkgT1AunYQyVccwmPRS2W9LhKgs9+3Rv0mr1xg@mail.gmail.com>
	<CAMTZZh3TVj1pLOTS9t+JcOJqCNvCFuZtXAff58_8aEhDtkRHzA@mail.gmail.com>
	<17082AAFC33A934082836458CB53494374D3C416@MONDB03.na.lzb.hq>

El 16/10/18 a las 09:59, Scot Kreienkamp escribió:
> Are you sure they’re actually waiting?  Don’t forget 10.5 will show the
> last query executed even if the connection is idle.  I believe discard
> all would be the last command the pgbouncer would send to the database
> when the client is done as it resets the connection for the next
> client.  So what you’re describing would seem to be expected behavior. 

He might have been referring to client waiting. That is visible in the
pgbouncer pseudo-database

OTOH if the the waiting is seen in pg_stat_activity, then pgbouncer has
nothing to do. The connection has already been assigned to the client
and the waiting is happening on the database server, not the pooler.

Regards,

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




view thread (9+ messages)  latest in thread

Message-ID: <f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.com>
Permalink:  ../f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.com/
Also on:    postgresql.org/message-id/f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.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: martin.marques@2ndquadrant.com, Scot.Kreienkamp@la-z-boy.com, nicola.contu@gmail.com, Alessandro.aste@gtt.net
  Subject: Re: Pgbouncer discard all
  In-Reply-To: <f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.com>
  References: <CAMTZZh35FFGnOkgT1AunYQyVccwmPRS2W9LhKgs9+3Rv0mr1xg@mail.gmail.com> <CAMTZZh3TVj1pLOTS9t+JcOJqCNvCFuZtXAff58_8aEhDtkRHzA@mail.gmail.com> <17082AAFC33A934082836458CB53494374D3C416@MONDB03.na.lzb.hq> <f02b447e-c1e6-450b-8219-ede2053e264c@2ndquadrant.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