Skip site navigation (1) Skip section navigation (2)

Re: SQL logging (log_min_duration_statement) not working properly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pallav Kalva <pkalva(at)deg(dot)cc>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: SQL logging (log_min_duration_statement) not working properly
Date: 2005-05-18 15:41:15
Message-ID: 22211.1116430875@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Pallav Kalva <pkalva(at)deg(dot)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

In response to

pgsql-admin by date

Next:From: Scott MarloweDate: 2005-05-18 15:51:36
Subject: Re: SQL logging (log_min_duration_statement) not working
Previous:From: Pallav KalvaDate: 2005-05-18 15:25:16
Subject: Re: SQL logging (log_min_duration_statement) not working

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group