Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 17F0C9F9BE3 for ; Sat, 29 Sep 2007 01:54:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 94361-03 for ; Sat, 29 Sep 2007 01:54:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D75F29F9B43 for ; Sat, 29 Sep 2007 01:54:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l8T4s026026030; Sat, 29 Sep 2007 00:54:00 -0400 (EDT) To: Oliver Jowett cc: Paul Lindner , pgsql-jdbc@postgresql.org 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> Comments: In-reply-to Oliver Jowett message dated "Sat, 29 Sep 2007 16:49:25 +1200" Date: Sat, 29 Sep 2007 00:54:00 -0400 Message-ID: <26029.1191041640@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/137 X-Sequence-Number: 17559 Oliver Jowett 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