pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mario Splivalo <mario.splivalo@mobart.hr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Log files cluttered with jdbc3/4 for pg8.2
Date: Mon, 02 Jul 2007 14:41:42 +0200
Message-ID: <1183380102.585.14.camel@localhost.localdomain> (raw)
In-Reply-To: <21411.1182520827@sss.pgh.pa.us>
References: <1182343472.12993.7.camel@localhost.localdomain>
	<18051.1182352589@sss.pgh.pa.us>
	<1182518494.16014.15.camel@localhost.localdomain>
	<21411.1182520827@sss.pgh.pa.us>

On Fri, 2007-06-22 at 10:00 -0400, Tom Lane wrote:
> > I need to have log_duration at 0 so I log EVERY call from the jdbc to
> > the postgresql because that's excellent way of debuging the dataflow
> > from the middle-tier to the application.
> 
> That is a job for log_statement not log_duration.

Thnx, that makes sense now :) I guess I overlooked log_statement for
some reason in pg8.0.

Altough I'd like to see this:

SELECT LOG: execute <unnamed>: select * from ad_get('104', '2007-07-02
14:36:57.361+02', '109')

instead of

SELECT LOG:  execute <unnamed>: select * from ad_get($1, $2, $3) as
result
SELECT DETAIL:  parameters: $1 = '104', $2 = '2007-07-02 14:36:57.361
+02', $3 = '109'

Yes, I know, prepared statements, but still..


	Mario




view thread (6+ messages)

Message-ID: <1183380102.585.14.camel@localhost.localdomain>
Permalink:  ../1183380102.585.14.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1183380102.585.14.camel@localhost.localdomain

 · 

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: mario.splivalo@mobart.hr, tgl@sss.pgh.pa.us
  Subject: Re: Log files cluttered with jdbc3/4 for pg8.2
  In-Reply-To: <1183380102.585.14.camel@localhost.localdomain>
  References: <1182343472.12993.7.camel@localhost.localdomain> <18051.1182352589@sss.pgh.pa.us> <1182518494.16014.15.camel@localhost.localdomain> <21411.1182520827@sss.pgh.pa.us> <1183380102.585.14.camel@localhost.localdomain>

* 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