Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0971D633BCB for ; Tue, 7 Apr 2009 19:32:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40771-01 for ; Tue, 7 Apr 2009 19:32:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 656566339E1 for ; Tue, 7 Apr 2009 19:32:17 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id n37MW9F06630; Tue, 7 Apr 2009 18:32:09 -0400 (EDT) From: Bruce Momjian Message-Id: <200904072232.n37MW9F06630@momjian.us> Subject: Re: log_min_duration_statement units In-Reply-To: <20090407222941.GV4525@alvh.no-ip.org> To: Alvaro Herrera Date: Tue, 7 Apr 2009 18:32:09 -0400 (EDT) CC: Euler Taveira de Oliveira , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/22 X-Sequence-Number: 5110 Alvaro Herrera wrote: > Bruce Momjian wrote: > > Euler Taveira de Oliveira wrote: > > > Bruce Momjian escreveu: > > > > Oops, here is the patch; Euler, would you look to see if you can find > > > > anything else missing; you seem to be good at that. :-) > > > > > > > My English is not as good as yours but here is another try. Personally, I > > > prefer the second one but... > > > > Great, I used your second version. I had already done some of the ones > > you found, but you had many more. I also used your "0 disables" wording > > consistently in the file. Thanks for the help. Committed. > > Huh ... I thought the units were removed from the descriptions when the > whole unit thing got introduced in guc.c. This seems more a regression > than anything else -- see guc.c rev 1.361. Which is why I originally did: #log_min_duration_statement = -1ms # -1 is disabled, 0 logs all statements but people complained so I went with adding it to the description. The units are only to document the default if no units are supplied. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +