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

Re: log_filename_prefix --> log_filename + strftime()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-27 19:15:56
Message-ID: 1790.1093634156@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
"Ed L." <pgsql(at)bluepolka(dot)net> writes:
> On Friday August 27 2004 1:03, Tom Lane wrote:
>> Hmm ... there isn't any way to emulate that with strftime escapes,
>> unless I missed the right one.

> If you supply an escape, Apache will override that default epoch.  So I 
> could see setting the default to "server_log" or "postgresql_log" or 
> whatever, and making the default (with no escapes supplied) be the epoch.  
> That would be easy tweak, and be much closer to Apache style.

Yeah, and it would also prevent a risk I now see with your initial
patch: if no %, it'll write the same filename each time, which
is almost certainly not desired.  Works for me.

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Andrew DunstanDate: 2004-08-27 19:17:18
Subject: Re: log_filename_prefix --> log_filename + strftime()
Previous:From: Andreas PflugDate: 2004-08-27 19:08:51
Subject: Re: log_filename_prefix --> log_filename + strftime()

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