Re: way to turn off epochs in log_filename - Mailing list pgsql-admin

From Tom Lane
Subject Re: way to turn off epochs in log_filename
Date
Msg-id 26960.1193434395@sss.pgh.pa.us
Whole thread Raw
In response to way to turn off epochs in log_filename  (David Lowry <dlowry@bju.edu>)
Responses Re: way to turn off epochs in log_filename  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-admin
David Lowry <dlowry@bju.edu> writes:
> The docs state that if there are no %-escapes in log_filename, then
> it will add the epoch onto the end of the log filename. Is there any
> way to turn off this behavior and just use the filename specified in
> log_filename? I'd like have all the log data written to a file like
> postgresql.log and let logrotate do the rotation.

If logrotate would work, we'd never have bothered writing our own
substitute.  But there's no way for logrotate to repoint postmaster's
stderr into other files.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Peter Koczan"
Date:
Subject: Re: way to turn off epochs in log_filename
Next
From: "Joshua D. Drake"
Date:
Subject: Re: way to turn off epochs in log_filename