Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group