pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pallav Kalva <pkalva@deg.cc>
Cc: pgsql-admin@postgresql.org
Subject: Re: SQL logging (log_min_duration_statement) not working properly
Date: Wed, 18 May 2005 11:41:15 -0400
Message-ID: <22211.1116430875@sss.pgh.pa.us> (raw)
In-Reply-To: <428B5E5C.2020400@deg.cc>
References: <428B4487.8010702@deg.cc>
	<21996.1116429488@sss.pgh.pa.us>
	<428B5E5C.2020400@deg.cc>

Pallav Kalva <pkalva@deg.cc> writes:
>>> I am having problems with logging long running SQL in the log file. 
>>> I have set log_min_duration_statement = 5000 (5secs) and it is not 
>>> logging sql statements that took over 5 secs and this is only from 
>>> queries generated by Hibernate .

Theory B is that Hibernate is a Java program and is using a recent
version of the JDBC driver.  JDBC now uses Parse/Bind/Execute messages
instead of the old-style protocol, and we haven't put support for
log_min_duration_statement into that code path yet ...

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <22211.1116430875@sss.pgh.pa.us>
Permalink:  ../22211.1116430875@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22211.1116430875@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pkalva@deg.cc
  Subject: Re: SQL logging (log_min_duration_statement) not working properly
  In-Reply-To: <22211.1116430875@sss.pgh.pa.us>
  References: <428B4487.8010702@deg.cc> <21996.1116429488@sss.pgh.pa.us> <428B5E5C.2020400@deg.cc> <22211.1116430875@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