Re: Log files, how to rotate properly - Mailing list pgsql-general

From Lamar Owen
Subject Re: Log files, how to rotate properly
Date
Msg-id 01061315533904.00942@lowen.wgcr.org
Whole thread Raw
In response to Log files, how to rotate properly  ("Dave Cramer" <Dave@micro-automation.net>)
Responses Re: Log files, how to rotate properly  (Martín Marqués <martin@bugs.unl.edu.ar>)
Re: Log files, how to rotate properly  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
On Wednesday 13 June 2001 13:20, Dave Cramer wrote:
> The interesting thing is that if I redirect the output of postmaster, then
> every connection has this file open.

> Is there a way to tell postgres to release the log file, or am I completely
> off base here?

Use syslog.  Syslog has many advantages:
1.)    Easily rollable.
2.)    Redirectable to various files and/or remote machines -- including
hardcopy, and including multiple files at once (splitting).
3.)    PostgreSQL 7.1 has excellent syslog support.
4.)    You don't have to shut anything down to roll the logs.
5.)    Thanks to item 2, you could have a single syslog machine accept the
syslog output of multiple PostgreSQL servers, integrating the log into one,
if you wish.

--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

pgsql-general by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Oracle news article
Next
From: Alex Pilosov
Date:
Subject: Re: Oracle news article