pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: PGStatement#setPrepareThreshold
Date: Fri, 4 Aug 2006 12:15:02 -0400 (EDT)
Message-ID: <200608041615.k74GF2M16894@momjian.us> (raw)
In-Reply-To: <907E63BE-BC8C-45C9-9FFD-E0F1B1F775B4@fastcrypt.com>

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] <BIND> %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. +



view thread (28+ messages)  latest in thread

Message-ID: <200608041615.k74GF2M16894@momjian.us>
Permalink:  ../200608041615.k74GF2M16894@momjian.us/
Also on:    postgresql.org/message-id/200608041615.k74GF2M16894@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: bruce@momjian.us, pg@fastcrypt.com, oliver@opencloud.com, tgl@sss.pgh.pa.us, nagy@ecircle-ag.com
  Subject: Re: PGStatement#setPrepareThreshold
  In-Reply-To: <200608041615.k74GF2M16894@momjian.us>
  References: <907E63BE-BC8C-45C9-9FFD-E0F1B1F775B4@fastcrypt.com> <200608041615.k74GF2M16894@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox