Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 01C429F9A8F for ; Sat, 29 Sep 2007 01:49:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 46171-06 for ; Sat, 29 Sep 2007 01:49:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id C51A69F9A8B for ; Sat, 29 Sep 2007 01:49:43 -0300 (ADT) Received: from 222-154-147-224.jetstream.xtra.co.nz ([222.154.147.224] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IbUGj-0002HQ-0K; Sat, 29 Sep 2007 16:49:33 +1200 Message-ID: <46FDD955.80204@opencloud.com> Date: Sat, 29 Sep 2007 16:49:25 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tom Lane CC: Paul Lindner , pgsql-jdbc@postgresql.org Subject: Re: Prepared Statements vs. pgbouncer References: <20070929002513.GG3140@inuus.com> <46FDA4F2.8080507@opencloud.com> <20070929021522.GH3140@inuus.com> <46FDBB38.40003@opencloud.com> <25703.1191039250@sss.pgh.pa.us> In-Reply-To: <25703.1191039250@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/136 X-Sequence-Number: 17558 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