Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WuyUs-0004rM-LG for pgsql-docs@arkaria.postgresql.org; Thu, 12 Jun 2014 06:28:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WuyUr-000377-Py for pgsql-docs@arkaria.postgresql.org; Thu, 12 Jun 2014 06:28:25 +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 1WuyUr-00036r-5r for pgsql-docs@postgresql.org; Thu, 12 Jun 2014 06:28:25 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WuyUo-0008QW-4m for pgsql-docs@postgresql.org; Thu, 12 Jun 2014 06:28:23 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WuyUn-00028H-Bv for pgsql-docs@postgresql.org; Wed, 11 Jun 2014 23:28:21 -0700 Date: Wed, 11 Jun 2014 23:28:21 -0700 (PDT) From: David G Johnston To: pgsql-docs@postgresql.org Message-ID: <1402554501237-5806947.post@n5.nabble.com> In-Reply-To: <53992FF8.2060702@po.ntts.co.jp> References: <53992FF8.2060702@po.ntts.co.jp> Subject: Re: disabling log_rotation_age feature. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.2 (++) 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 Tomonari Katsumata-2 wrote > Hi, > > I'm reading about log_rotation_age. > And I noticed that the setting for disabling the feature is not clear. > > > 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. > > [Example] > ******************************************* > $ grep log_rotation_age ${PGDATA}/postgresql.conf > #log_rotation_age = 1d # Automatic rotation of logfiles will > log_rotation_age = 10s # Automatic rotation of logfiles will > > $ psql postgres > psql (9.5devel) > Type "help" for help. > > postgres=# show log_rotation_age ; > log_rotation_age > ------------------ > 0 > (1 row) > ******************************************* > > I think this fact should be written on document for users. > > [Fix Example] > ********* > After this many minutes have elapsed, a new log file will > - be created. Set to zero to disable time-based creation of > + be created. Set to zero or less than one minute to disable time-based > new log files. > ********* I suggest documenting, if correct, that maximum resolution is minutes (rounding down) and thus any sub-1-minute value will be interpreted as zero and disable the feature. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/disabling-log-rotation-age-feature-tp5806936p5806947.html Sent from the PostgreSQL - docs mailing list archive at Nabble.com. -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs