Re: A single escape required for log_filename - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: A single escape required for log_filename
Date
Msg-id 20090113221602.GG4656@tamriel.snowman.net
Whole thread Raw
In response to Re: A single escape required for log_filename  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> "Joshua D. Drake" <jd@commandprompt.com> writes:
> > I have perfectly good log rotation utility that exists on my OS. (yes I
> > am aware of the possibility of losing a log entry when using logrotate).
>
> You might think you do, but it won't work with PG; external rotators
> only work with programs that respond to SIGHUP by re-opening their log
> files.

logrotate will work well enough using copytruncate.  It's certainly
unfortunate that PostgreSQL doesn't provide a better mechanism.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: A single escape required for log_filename
Next
From: Stephen Frost
Date:
Subject: Re: A single escape required for log_filename