Re: rotating log files - Mailing list pgsql-general

From Warren Vanichuk
Subject Re: rotating log files
Date
Msg-id Pine.LNX.4.21.0104270848110.8036-100000@urd.street-light.com
Whole thread Raw
In response to rotating log files  (Jelle Ouwerkerk <jelle@openface.ca>)
List pgsql-general
> # start
>
> /var/log/postgresql.log {
>            compress
>            rotate 10
>            create 0664 postgres postgres
>            size=10000k
>            weekly
>            sharedscripts
>            postrotate
>              /etc/rc.d/init.d/postgresql restart
>            endscript
> }

Alternatively, instead of restarting postgres, the "copytruncate" option can
be used to truncate the log file in place, allowing postgres to continue
writting to the file without needing to restart.

Sincerely, Warren


pgsql-general by date:

Previous
From: Joseph Koenig
Date:
Subject: General usage for pg_dumpall
Next
From: Michelle Murrain
Date:
Subject: pg_encoding