Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B7B05632B76 for ; Tue, 7 Apr 2009 20:43:34 -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 11630-07 for ; Tue, 7 Apr 2009 20:43:32 -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 EE4896327AF for ; Tue, 7 Apr 2009 20:43:32 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id n37NhN225096; Tue, 7 Apr 2009 19:43:23 -0400 (EDT) From: Bruce Momjian Message-Id: <200904072343.n37NhN225096@momjian.us> Subject: Re: log_min_duration_statement units In-Reply-To: <200904072327.n37NRu513852@momjian.us> To: Bruce Momjian Date: Tue, 7 Apr 2009 19:43:23 -0400 (EDT) CC: Tom Lane , 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/27 X-Sequence-Number: 5115 Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Tom Lane wrote: > > >> You know, it suddenly strikes me that this is going in largely the wrong > > >> direction. > > > > > Right, the problem particularly is with the -1/special values that don't > > > have a real unit. > > > > I don't object to what you did to postgresql.conf.sample, but I think > > you should revert the changes to the descriptions in guc.c. > > Agreed; attached patch applied. However, keep in mind that units are _not_ displayed for zero values: test=> show statement_timeout; statement_timeout ------------------- 0 (1 row) test=> set statement_timeout = 100; SET test=> show statement_timeout; statement_timeout ------------------- 100ms (1 row) because of this test in guc.c: else if (use_units && result > 0 && (record->flags & GUC_UNIT_TIME)) pg_settings does show the units. Changing this to display the units might be odd since many zero values mean 'disabled'. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +