Re: log_filename_prefix --> log_filename + strftime()

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>, pgsql-patches(at)postgresql(dot)org
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-27 20:00:59
Message-ID: 200408271400.59289.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Friday August 27 2004 1:39, Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Ah, so we keep the existing format but drop the pid, and just make it
> > changable by the user, and we rename it. Doesn't sound as drastic as
> > it first did.
>
> Yeah, the only change in default behavior would be to drop the PID part
> of the log filename, which doesn't seem too bad, since people aren't yet
> depending on that.
>
> regards, tom lane

OK, if I read you correctly...

Default remains "postgresql-%Y-%m-%d_%H%M%S.log"

(Apache style: access_log.%s)

If log_filename = 'xxx', rotate with strftime() to 'xxx-%Y-%m-%d_%H%M%S'

(Apache style: xxx.%s)

If log_filename = 'xxx.%a', rotate with strftime() to 'xxx.%a'

(Apache style: xxx.%a)

Not a big fan of the verbose 32-character default name, 'server_log.%s'
would be my pick, but easy enough to override it.

Ed

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-08-27 20:15:34 Re: log_filename_prefix --> log_filename + strftime()
Previous Message Tom Lane 2004-08-27 19:39:15 Re: log_filename_prefix --> log_filename + strftime()