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

Re: log_filename_prefix --> log_filename + strftime()

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>,"Ed L(dot)" <pgsql(at)bluepolka(dot)net>,Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-29 19:20:35
Message-ID: 41322C83.9080608@Yahoo.com (view raw or flat)
Thread:
Lists: pgsql-patches
On 8/29/2004 2:06 PM, Tom Lane wrote:
> Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
>> Jan Wieck wrote:
>>>   but allows to setup a
>>> configuration that automatically overwrites files in a rotating manner, 
>>> if the DBA so desires.
> 
>> ... which can't work because it will overwrite the logfile on server 
>> start, and thus will overwrite the very latest logfile when performing 
>> multiple restarts.
> 
> You are ignoring a critical part of the proposal, which is to overwrite
> only during a time-based rotation; at logger startup or size-based
> rotation, the rule would be to append.

which then has a problem when you startup the postmaster after 10 hours 
of downtime ... hmmm.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-08-29 19:25:09
Subject: Re: log_filename_prefix --> log_filename + strftime()
Previous:From: Tom LaneDate: 2004-08-29 18:06:26
Subject: Re: log_filename_prefix --> log_filename + strftime()

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