pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mario.splivalo@mobart.hr
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Log files cluttered with jdbc3/4 for pg8.2
Date: Fri, 22 Jun 2007 10:00:27 -0400
Message-ID: <21411.1182520827@sss.pgh.pa.us> (raw)
In-Reply-To: <1182518494.16014.15.camel@localhost.localdomain>
References: <1182343472.12993.7.camel@localhost.localdomain>
	<18051.1182352589@sss.pgh.pa.us>
	<1182518494.16014.15.camel@localhost.localdomain>

Mario Splivalo <mario.splivalo@mobart.hr> writes:
> On Wed, 2007-06-20 at 11:16 -0400, Tom Lane wrote: 
>> Well, if you set log_min_messages to DEBUG, as you evidently have,
>> you're going to get a pretty chatty log.  You might want to rethink
>> your log_duration threshold as well.

> Yes, I have log_min_messages to DEBUG, but if I set it to INFO, NOTICE,
> WARNING or ERROR I still have PARSE LOG, BIND LOG/BIND DETAIL entries. I
> haven't been able to found what exactley they are, and I'd realy like to
> not have them in my log files.

They're real actions, they take a finite amount of time, and if you've
got log_duration unconditionally enabled then they're going to be logged
so that the system can report its CPU use.

> 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.

> Could anyone point me on what exactly PARSE LOG and BIND LOG entries
> are?

http://www.postgresql.org/docs/8.2/static/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <21411.1182520827@sss.pgh.pa.us>
Permalink:  ../21411.1182520827@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21411.1182520827@sss.pgh.pa.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: tgl@sss.pgh.pa.us, mario.splivalo@mobart.hr
  Subject: Re: Log files cluttered with jdbc3/4 for pg8.2
  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>

* 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