How do you stop the log from rotating on restart?

Started by runnerabout 15 years ago2 messagesgeneral
Jump to latest
#1runner
runner@winning.com

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

#2Gurjeet Singh
singh.gurjeet@gmail.com
In reply to: runner (#1)
Re: How do you stop the log from rotating on restart?

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 <http://www.enterprisedb.com/&gt; Corporation
The Enterprise PostgreSQL <http://www.postgresql.org/&gt; Company