Re: log_filename_prefix --> log_filename + strftime()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, "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 18:06:26
Message-ID: 6951.1093802786@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Jan Wieck 2004-08-29 19:20:35 Re: log_filename_prefix --> log_filename + strftime()
Previous Message Andrew Piskorski 2004-08-29 17:48:07 Re: Contrib -- PostgreSQL shared variables