pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Paul Lindner <lindner@inuus.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements vs. pgbouncer
Date: Sat, 29 Sep 2007 00:54:00 -0400
Message-ID: <26029.1191041640@sss.pgh.pa.us> (raw)
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>

Oliver Jowett <oliver@opencloud.com> writes:
> 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.

I don't have a reason to think it's a big loss --- I was just worried
that you were going out of your way to make this happen, when it's
probably not a win either.

			regards, tom lane



view thread (48+ messages)  latest in thread

Message-ID: <26029.1191041640@sss.pgh.pa.us>
Permalink:  ../26029.1191041640@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26029.1191041640@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, oliver@opencloud.com, lindner@inuus.com
  Subject: Re: Prepared Statements vs. pgbouncer
  In-Reply-To: <26029.1191041640@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> <46FDD955.80204@opencloud.com> <26029.1191041640@sss.pgh.pa.us>

* 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