public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G Johnston <[email protected]>
To: [email protected]
Subject: Re: disabling log_rotation_age feature.
Date: Wed, 11 Jun 2014 23:35:25 -0700 (PDT)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

David G Johnston wrote
> 
> 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.

Note that given the description and the fact only integer is supported the
above is already implied today.  I would think specifying a seconds should
result in an error since doing so requires a floating point value.

Is it documented (if true) that any floating point number given to an
integer typed parameter is truncated?  Or does the time form with units have
some special behavior?

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/disabling-log-rotation-age-feature-tp5806936p5806948.html
Sent from the PostgreSQL - docs mailing list archive at Nabble.com.


-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (11+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: disabling log_rotation_age feature.
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox