Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id CCC6B9FB605 for ; Wed, 8 Aug 2007 17:58:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 59303-03 for ; Wed, 8 Aug 2007 17:57:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by postgresql.org (Postfix) with ESMTP id 5DBB79FB8DA for ; Wed, 8 Aug 2007 17:57:54 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so47751ana for ; Wed, 08 Aug 2007 13:57:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NEKPD2iTEvpqisAH0pCEuoIQTYrD4fH2cgqa6v835wJIx2uil0AHVUfoiPQgyrChfn7pOKwlyMLrMqnIXJhsWs71Sdr/byfU1m4RQ4O7/h5dUOJhXzBW8Rmk+SdbEObPIz2soH7xESiDNAeM6ScsgStY96PT9BAjU7GUd1nT14o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IU2stbWiDBe+iXILk9RAAQZkNURJM45fqp+4DJ45egP4Gu2mnADqD/W+YylDJUitnF/3+/82Rlyms0XLTuFzugGpvUpgB0Ev8YBN0EtJhHTVBwCUzhiNiTBXet7nQt/rhQJJRnzohrZVmplnFv36+7jTZVQHxPrw51wugirK67I= Received: by 10.100.37.4 with SMTP id k4mr1641753ank.1186606672892; Wed, 08 Aug 2007 13:57:52 -0700 (PDT) Received: by 10.100.45.4 with HTTP; Wed, 8 Aug 2007 13:57:52 -0700 (PDT) Message-ID: Date: Wed, 8 Aug 2007 15:57:52 -0500 From: "Bryan Murphy" To: pgsql-performance@postgresql.org Subject: Re: How to ENABLE SQL capturing??? In-Reply-To: <20070808203612.GA26143@uio.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12060736.post@talk.nabble.com> <20070808203612.GA26143@uio.no> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/75 X-Sequence-Number: 26205 we currently have logging enabled for all queries over 100ms, and keep the last 24 hours of logs before we rotate them. I've found this tool very helpful in diagnosing new performance problems that crop up: http://pgfouine.projects.postgresql.org/ Bryan On 8/8/07, Steinar H. Gunderson wrote: > 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/ > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >