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

Re: log_filename_prefix --> log_filename + strftime()

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-27 19:17:18
Message-ID: 412F88BE.7020609@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-patches

Tom Lane wrote:

>"Ed L." <pgsql(at)bluepolka(dot)net> writes:
>  
>
>>On Friday August 27 2004 12:41, Tom Lane wrote:
>>    
>>
>>>BTW, as long as we are taking Apache as the de facto standard --- does
>>>the default of "postgresql-%Y-%m-%d_%H%M%S.log" actually make sense, or
>>>would something different be closer to the common practice with Apache?
>>>      
>>>
>
>  
>
>>I should say, Apache rotatelogs takes a configurable filename and then 
>>appends ".N" where N is the logfile start time epoch.  In one case, its 
>>access_log.N, in another its error_log.N.
>>    
>>
>
>Hmm ... there isn't any way to emulate that with strftime escapes,
>unless I missed the right one.
>
>
>  
>

According to my Linux man page, the Olsen library has %s for that. I 
don't see it in src/timezone/strftime.c, though

cheers

andrew

In response to

pgsql-patches by date

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

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