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 A29289FB2CA for ; Fri, 4 Aug 2006 13:15:31 -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 75173-07 for ; Fri, 4 Aug 2006 16:15:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id DDAD69FB2BE for ; Fri, 4 Aug 2006 13:15:18 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id k74GF2M16894; Fri, 4 Aug 2006 12:15:02 -0400 (EDT) From: Bruce Momjian Message-Id: <200608041615.k74GF2M16894@momjian.us> Subject: Re: PGStatement#setPrepareThreshold In-Reply-To: <907E63BE-BC8C-45C9-9FFD-E0F1B1F775B4@fastcrypt.com> To: Dave Cramer Date: Fri, 4 Aug 2006 12:15:02 -0400 (EDT) CC: Oliver Jowett , Tom Lane , Csaba Nagy , Postgres JDBC X-Mailer: ELM [version 2.4ME+ PL122k (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/21 X-Sequence-Number: 15548 Dave Cramer wrote: > > On 3-Aug-06, at 11:55 PM, Bruce Momjian wrote: > > > Dave Cramer wrote: > >> > >> 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. > > > > Current CVS has: > > > > (errmsg("statement: [protocol] %s", portal_name))); > > Bind also has a statement name, as well as a portal name ? > > Ideally I'd like to see the parameters which were bound and the > types, but I suspect I'm reaching here. Right, but do we want to repeat the statement for every bind case? The bind parameter printing is on the TODO list. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +