X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 960349FB2C6 for ; Thu, 3 Aug 2006 19:15:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 75341-07 for ; Thu, 3 Aug 2006 22:14:57 +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 BEFD59FB2C2 for ; Thu, 3 Aug 2006 19:14:56 -0300 (ADT) Received: from 203-118-178-246.bliink.ihug.co.nz ([203.118.178.246] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1G8lSp-0005Gq-Oq; Fri, 04 Aug 2006 10:14:47 +1200 Message-ID: <44D27558.3040907@opencloud.com> Date: Fri, 04 Aug 2006 10:14:48 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Dave Cramer CC: Tom Lane , Csaba Nagy , Postgres JDBC , Bruce Momjian Subject: Re: PGStatement#setPrepareThreshold References: <1154529173.21451.27.camel@coppola.muc.ecircle.de> <44D19215.1070002@opencloud.com> <1154596670.21451.44.camel@coppola.muc.ecircle.de> <25044.1154635187@sss.pgh.pa.us> <5DA7BECA-42E8-4A94-ADDC-ACCA42F6DF5F@fastcrypt.com> In-Reply-To: <5DA7BECA-42E8-4A94-ADDC-ACCA42F6DF5F@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/15 X-Sequence-Number: 15542 Dave Cramer wrote: > If that's the case then the driver is not doing what it's supposed to be > doing. It should be using the named portal (S_3) to do the insert. No, the driver is fine. It is using a named statement (S_3) but an unnamed portal (because it is going to fetch all the data in one go and doesn't need to retain the portal after execution) If your query met the conditions for using a portal-based ResultSet, you'd see it use a named portal as well as a named statement. -O