Обсуждение: How do you stop the log from rotating on restart?

Поиск
Список
Период
Сортировка

How do you stop the log from rotating on restart?

От
runner
Дата:
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?

От
Gurjeet Singh
Дата:
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