pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Fetter <david@fetter.org>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>
Cc: PostgreSQL JDBC List <pgsql-jdbc@postgresql.org>
Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol
Date: Sat, 5 Aug 2006 08:59:10 -0700
Message-ID: <20060805155910.GA10235@fetter.org> (raw)
In-Reply-To: <44D44B44.5070106@opencloud.com>
References: <200608050523.k755Nto22934@momjian.us>
	<44D44B44.5070106@opencloud.com>

On Sat, Aug 05, 2006 at 07:39:48PM +1200, Oliver Jowett wrote:
> Bruce Momjian wrote:
> >OK, updated patch, with output of text bind parameters.  New output
> >is:
> >	
> >	LOG:  prepare sel1:  SELECT $1 + $2;
> >	LOG:  bind sel1:  SELECT $1 + $2;
> >	LOG:  bind sel1:  parameter 1:  "8"
> >	LOG:  bind sel1:  parameter 2:  "5"
> >	LOG:  execute sel1:  SELECT $1 + $2;
> >
> >I put each bind parameter on a separate line.  Is that OK?
> 
> My only comment here is that this is very verbose. The JDBC driver
> now always uses the extended query protocol, even when not doing
> "server-side prepare", so you're going to get multiple lines of
> output all the time when using JDBC apps.

Does this mean that the JDBC driver needs work on this?

> A 50-parameter query could be .. interesting ..
> 
> I realize that you need this level of output to reflect what is
> happening at the protocol level, but seeing all the protocol detail
> is not really what you expect when you turn on basic statement
> logging, is it?

Possibly not basic statement logging, but there are cases where I
would have saved a *lot* of time if it had been available.

Cheers,
D
-- 
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!



view thread (21+ messages)  latest in thread

Message-ID: <20060805155910.GA10235@fetter.org>
Permalink:  ../20060805155910.GA10235@fetter.org/
Also on:    postgresql.org/message-id/20060805155910.GA10235@fetter.org

 · 

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: david@fetter.org, oliver@opencloud.com, bruce@momjian.us, tgl@sss.pgh.pa.us, pg@fastcrypt.com, nagy@ecircle-ag.com, pgsql-patches@postgresql.org
  Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol
  In-Reply-To: <20060805155910.GA10235@fetter.org>
  References: <200608050523.k755Nto22934@momjian.us> <44D44B44.5070106@opencloud.com> <20060805155910.GA10235@fetter.org>

* 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