Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 899319FB1CC for ; Tue, 31 Oct 2006 07:54:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 93880-07 for ; Tue, 31 Oct 2006 11:54:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id A80AB9FAE4E for ; Tue, 31 Oct 2006 07:54:43 -0400 (AST) Received: from 222-153-190-100.jetstream.xtra.co.nz ([222.153.190.100] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GesCO-0003Er-V5; Wed, 01 Nov 2006 00:54:33 +1300 Message-ID: <45473968.1050703@opencloud.com> Date: Wed, 01 Nov 2006 00:54:16 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane CC: Kris Jurka , David Goodenough , pgsql-jdbc@postgresql.org Subject: Re: confused about transactions and connection pools References: <200610301117.54932.david.goodenough@btconnect.com> <20716.1162247126@sss.pgh.pa.us> In-Reply-To: <20716.1162247126@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: 200610/150 X-Sequence-Number: 16033 Tom Lane wrote: > I'm a bit > dubious that the prepared-statement machinery actually results in a win > compared to just issuing simple Query messages. The driver has no infrastructure for issuing simple Query messages in v3 mode, and anyway we want to batch the BEGIN up with the query that follows it. COMMIT/ROLLBACK might be of dubious value but I don't know if it's worth having a completely separate code path in the driver just for that one case. -O