Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 10C059FA2F4 for ; Thu, 14 Jun 2007 18:02:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 85369-09 for ; Thu, 14 Jun 2007 18:01:53 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by postgresql.org (Postfix) with ESMTP id 2F7639FB40A for ; Thu, 14 Jun 2007 18:01:55 -0300 (ADT) Received: by mu-out-0910.google.com with SMTP id i10so904374mue for ; Thu, 14 Jun 2007 14:01:54 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L8oBxikPKEGylg4pZYDta4xLq57OzQTUxAqk50kq33/hfLBFeFB3Be/cTV6Kn4Sdq3ntA2Lnno5bUjJZ/20axCL+wIi75KqfWauGtA0APPI3R957czuBaOYZVGJry7+VArPHycUAeZcrgTp2dqb1xC4aAZEGc7+r3upYgguOaCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qcs/FibBcru5WrWMak79TIVE/Y4we7iEvugG3ypBwdzqkE9DNkbf0J3l8JGI1bp9bDln8Yk/QuQ34fsBEpTPorXSzlDzA7IBIBA9YgwHsSCKeqkNONKNhLmRa3P8uInUO1otgblgazZDjv4elNrwQwNyuDkfmXzOqATvzdk9KyU= Received: by 10.82.134.12 with SMTP id h12mr4247792bud.1181854914162; Thu, 14 Jun 2007 14:01:54 -0700 (PDT) Received: by 10.82.120.6 with HTTP; Thu, 14 Jun 2007 14:01:54 -0700 (PDT) Message-ID: <1d4e0c10706141401u2ae5ff73x61a86973b13f6133@mail.gmail.com> Date: Thu, 14 Jun 2007 23:01:54 +0200 From: "Guillaume Smet" To: "Y Sidhu" Subject: Re: Parsing VACUUM VERBOSE Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200706141653.33808.dfontaine@hi-media.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/257 X-Sequence-Number: 25290 On 6/14/07, Y Sidhu wrote: > Can anyone share what value they have set log_min_duration_statement to? It's OT but we use different values for different databases and needs. On a very loaded database with a lot of complex queries (lots of join on big tables, proximity queries, full text queries), we use 100 ms. It logs ~ 300 000 queries. It allows us to detect big regressions or new queries which are very slow. On another database where I want to track transaction leaks, I'm forced to put it to 0ms. Basically, the answer is: set it to the lowest value you can afford without impacting too much your performances (and if you use syslog, use async I/O or send your log to the network). -- Guillaume