Re: disabling log_rotation_age feature.

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Re: disabling log_rotation_age feature.
Date: 2014-06-12 06:28:21
Message-ID: 1402554501237-5806947.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G Johnston 2014-06-12 06:35:25 Re: disabling log_rotation_age feature.
Previous Message Tomonari Katsumata 2014-06-12 04:43:36 disabling log_rotation_age feature.