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

From Joshua D. Drake
Subject Re: way to turn off epochs in log_filename
Date
Msg-id 20071026144005.3aa6cc29@scratch
Whole thread Raw
In response to Re: way to turn off epochs in log_filename  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: way to turn off epochs in log_filename
List pgsql-admin
On Fri, 26 Oct 2007 17:33:15 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> 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.

Uh... can't we just use copytruncate with logroate? That way
we don't have to repoint. That is how we do it anyway... Or am I missing
something?

Joshua D. Drake


>
>             regards, tom lane
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 1: if posting/reading
> through Usenet, please send an appropriate subscribe-nomail command
> to majordomo@postgresql.org so that your message can get through to
> the mailing list cleanly
>


--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
            UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


Attachment

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: way to turn off epochs in log_filename
Next
From: Tom Lane
Date:
Subject: Re: way to turn off epochs in log_filename