Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 5C69B9FB8F5 for ; Wed, 8 Aug 2007 17:36:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 81434-01 for ; Wed, 8 Aug 2007 17:36:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 3A69A9FB8AA for ; Wed, 8 Aug 2007 17:36:18 -0300 (ADT) Received: from trofast.ipv6.sesse.net ([2001:700:300:1803:20e:cff:fe36:a766] helo=trofast.sesse.net) by cassarossa.samfundet.no with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1IIsGL-0002km-8s; Wed, 08 Aug 2007 22:36:15 +0200 Received: from root by trofast.sesse.net with local (Exim 4.67) (envelope-from ) id 1IIsGK-0006oQ-Lk; Wed, 08 Aug 2007 22:36:12 +0200 Date: Wed, 8 Aug 2007 22:36:12 +0200 From: "Steinar H. Gunderson" To: smiley2211 Cc: pgsql-performance@postgresql.org Subject: Re: How to ENABLE SQL capturing??? Message-ID: <20070808203612.GA26143@uio.no> Mail-Followup-To: smiley2211 , pgsql-performance@postgresql.org References: <12060736.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <12060736.post@talk.nabble.com> X-Operating-System: Linux 2.6.20.4 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/73 X-Sequence-Number: 26203 On Wed, Aug 08, 2007 at 01:02:24PM -0700, smiley2211 wrote: > I am trying to enable capturing of the submitted code via an > application...how do I do this in Postgres? Performance is SLOW on my > server and I have autovacuum enabled as well as rebuilt indexes...whatelse > should be looked at? Try "log_min_duration_statement = 100" in postgresql.conf; it will show all statements that take more than 100ms. Set to 0 to log _all_ statements, or -1 to turn the logging back off. /* Steinar */ -- Homepage: http://www.sesse.net/