X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 74E55528C9 for ; Wed, 18 May 2005 12:41:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73598-06 for ; Wed, 18 May 2005 15:41:18 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id BE9D8528C1 for ; Wed, 18 May 2005 12:41:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j4IFfFGj022212; Wed, 18 May 2005 11:41:15 -0400 (EDT) To: Pallav Kalva Cc: pgsql-admin@postgresql.org Subject: Re: SQL logging (log_min_duration_statement) not working properly In-reply-to: <428B5E5C.2020400@deg.cc> References: <428B4487.8010702@deg.cc> <21996.1116429488@sss.pgh.pa.us> <428B5E5C.2020400@deg.cc> Comments: In-reply-to Pallav Kalva message dated "Wed, 18 May 2005 11:25:16 -0400" Date: Wed, 18 May 2005 11:41:15 -0400 Message-ID: <22211.1116430875@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/242 X-Sequence-Number: 17671 Pallav Kalva 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