pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Paul Lindner <lindner@inuus.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements vs. pgbouncer
Date: Sat, 29 Sep 2007 16:49:25 +1200
Message-ID: <46FDD955.80204@opencloud.com> (raw)
In-Reply-To: <25703.1191039250@sss.pgh.pa.us>
References: <20070929002513.GG3140@inuus.com>
	<46FDA4F2.8080507@opencloud.com>
	<20070929021522.GH3140@inuus.com>
	<46FDBB38.40003@opencloud.com>
	<25703.1191039250@sss.pgh.pa.us>

Tom Lane wrote:

> I'm kinda hijacking the thread here, because this question is unrelated
> to pgbouncer's behavior, but: have you ever done any performance
> measurement to prove that preparing BEGIN/COMMIT/ROLLBACK is a good idea?

No benchmarks. There would be essentially no difference in the driver 
code either way (literally, you'd have to add code to avoid preparing 
the statement) so unless named statements are much more expensive than 
unnamed ones it's probably not worth worrying about. We do avoid 
processing an extra network message each way (Parse/ParseComplete) with 
the current code.

-O



view thread (48+ messages)  latest in thread

Message-ID: <46FDD955.80204@opencloud.com>
Permalink:  ../46FDD955.80204@opencloud.com/
Also on:    postgresql.org/message-id/46FDD955.80204@opencloud.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: oliver@opencloud.com, tgl@sss.pgh.pa.us, lindner@inuus.com
  Subject: Re: Prepared Statements vs. pgbouncer
  In-Reply-To: <46FDD955.80204@opencloud.com>
  References: <20070929002513.GG3140@inuus.com> <46FDA4F2.8080507@opencloud.com> <20070929021522.GH3140@inuus.com> <46FDBB38.40003@opencloud.com> <25703.1191039250@sss.pgh.pa.us> <46FDD955.80204@opencloud.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