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 639A952802 for ; Wed, 18 May 2005 12:18:12 -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 56599-04 for ; Wed, 18 May 2005 15:18:10 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D1DF052800 for ; Wed, 18 May 2005 12:18:09 -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 j4IFI81e021997; Wed, 18 May 2005 11:18:08 -0400 (EDT) To: Pallav Kalva Cc: pgsql-admin@postgresql.org Subject: Re: SQL logging (log_min_duration_statement) not working properly In-reply-to: <428B4487.8010702@deg.cc> References: <428B4487.8010702@deg.cc> Comments: In-reply-to Pallav Kalva message dated "Wed, 18 May 2005 09:35:03 -0400" Date: Wed, 18 May 2005 11:18:08 -0400 Message-ID: <21996.1116429488@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/240 X-Sequence-Number: 17669 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 . Did you set log_min_duration_statement in a way that would actually affect Hibernate (ie, change postgresql.conf and sighup the postmaster)? regards, tom lane