pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Kreen <markokr@gmail.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-jdbc@postgresql.org
Cc: PgBouncer <pgbouncer-general@pgfoundry.org>
Subject: Re: [Pgbouncer-general] Prepared Statements vs. pgbouncer
Date: Thu, 4 Oct 2007 19:18:53 +0300
Message-ID: <e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.com> (raw)
In-Reply-To: <200710040846.06394.josh@agliodbs.com>
References: <24584.1191033096@sss.pgh.pa.us>
	<200710021313.56931.josh@agliodbs.com>
	<e51f66da0710021322t5bfdba93q19fd885a64f7e27f@mail.gmail.com>
	<200710040846.06394.josh@agliodbs.com>

On 10/4/07, Josh Berkus <josh@agliodbs.com> wrote:
> > Yes, then you don't need any support from pgbouncer, only
> > a way to drop all prepared plans on session end, which unfortunately
> > is available only in 8.3 - DEALLOCATE ALL / DISCARD ALL.
>
> Oh.  So on 8.2, this is still an issue becuase the plans will persist beyond
> JDBC dropping the connection?

Yes.  JDBC could avoid it by carefully dropping all plans before
closing the connection.

> Also, are you saying that on 8.3 the client
> code will have to manually issue DEALLOCATE ALL on session end?

No, it is pgbouncer's job.  Set server_reset_query to
"DISCARD ALL".  Although that happens to be available only
in 1.1 branch of pgbouncer, which should be released any day now.

In 1.0 it can be done by server_check_query = "..", server_check_delay = 0
but that makes it unusable for it's intended purpose.

-- 
marko



view thread (48+ messages)

Message-ID: <e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.com>
Permalink:  ../e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.com/
Also on:    postgresql.org/message-id/e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.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-jdbc@postgresql.org
  Cc: markokr@gmail.com, josh@agliodbs.com, pgbouncer-general@pgfoundry.org
  Subject: Re: [Pgbouncer-general] Prepared Statements vs. pgbouncer
  In-Reply-To: <e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.com>
  References: <24584.1191033096@sss.pgh.pa.us> <200710021313.56931.josh@agliodbs.com> <e51f66da0710021322t5bfdba93q19fd885a64f7e27f@mail.gmail.com> <200710040846.06394.josh@agliodbs.com> <e51f66da0710040918xdecee91r38eb7567a4874b@mail.gmail.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