Thread: How do you stop the log from rotating on restart?

How do you stop the log from rotating on restart?

From
runner
Date:
Postgres 9.0.3 on Solaris 10

Can't seem to figure out how to stop the postgres log file from rotating on a restart of services.

log_truncate_on_rotation  is commented out
log_rotation_age = 1d

We just want it to rotate once a day no matter haw many times we restart.

Don't see anything else that would seem to affect log file rotation




Re: How do you stop the log from rotating on restart?

From
Gurjeet Singh
Date:
On Sat, Mar 19, 2011 at 8:00 PM, runner <runner@winning.com> wrote:
Postgres 9.0.3 on Solaris 10

Can't seem to figure out how to stop the postgres log file from rotating on a restart of services.

log_truncate_on_rotation  is commented out
log_rotation_age = 1d

We just want it to rotate once a day no matter haw many times we restart.

Don't see anything else that would seem to affect log file rotation

You'll have to play with the format in log_filename GUC.

HTH,
--
Gurjeet Singh
EnterpriseDB Corporation
The Enterprise PostgreSQL Company