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 2D9DE9FB212 for ; Thu, 3 Aug 2006 19:20:57 -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 73998-09 for ; Thu, 3 Aug 2006 22:20:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id DA5679FA2A9 for ; Thu, 3 Aug 2006 19:20:50 -0300 (ADT) Received: (qmail 15283 invoked from network); 3 Aug 2006 22:20:49 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 3 Aug 2006 22:20:49 -0000 In-Reply-To: <44D27558.3040907@opencloud.com> 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> <44D27558.3040907@opencloud.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Tom Lane , Csaba Nagy , Postgres JDBC , Bruce Momjian Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: PGStatement#setPrepareThreshold Date: Thu, 3 Aug 2006 18:20:47 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/16 X-Sequence-Number: 15543 On 3-Aug-06, at 6:14 PM, Oliver Jowett wrote: > 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. Thanks for clarifying that Oliver, the logs are still misleading in that they don't name the statement used in the bind message. --dc-- > > -O >