Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv6CM-0001Qs-BZ for pgsql-docs@arkaria.postgresql.org; Thu, 12 Jun 2014 14:41:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wv6CL-0002DH-Qc for pgsql-docs@arkaria.postgresql.org; Thu, 12 Jun 2014 14:41:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wv6CL-0002DA-7T for pgsql-docs@postgresql.org; Thu, 12 Jun 2014 14:41:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wv6CH-0000az-Sc for pgsql-docs@postgresql.org; Thu, 12 Jun 2014 14:41:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5CEfZl3023803; Thu, 12 Jun 2014 10:41:35 -0400 From: Tom Lane To: Fujii Masao cc: Tomonari Katsumata , pgsql-docs Subject: Re: disabling log_rotation_age feature. In-reply-to: References: <53992FF8.2060702@po.ntts.co.jp> Comments: In-reply-to Fujii Masao message dated "Thu, 12 Jun 2014 21:26:09 +0900" Date: Thu, 12 Jun 2014 10:41:35 -0400 Message-ID: <23802.1402584095@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Fujii Masao writes: > On Thu, Jun 12, 2014 at 1:43 PM, Tomonari Katsumata > wrote: >> The document tells us to set it to ZERO if we want to disable the feature. >> However, the feature would be disabled if we set it less than one minute. > That's because log_rotation_age expects the setting value in minutes. > This is not a problem only for log_rotation_age. When setting the parameter > which expects the value in seconds to less than one second, the setting value > is implicitly reset to the default. It's not "reset to default", it's set to zero due to rounding the fraction down. Some GUCs interpret zero specially, some don't. I wonder if we should round fractions up instead of down in that logic? It might be less surprising for those GUCs where zero is special, and it seems like about a wash for most others. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs