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: Jan Wieck <JanWieck(at)Yahoo(dot)com>
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:25:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
>> 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.

Doesn't seem like a big problem --- at worst that logfile will get to be
double the size it normally would.

Note that this scheme effectively disables size-based rotation anyway,
unless you use one of the hacks we talked about like using a %H:%M
pattern when you intend hourly rotation.

			regards, tom lane

In response to


pgsql-patches by date

Next:From: Gavin SherryDate: 2004-08-29 19:56:25
Subject: Re: dbsize contrib
Previous:From: Jan WieckDate: 2004-08-29 19:20:35
Subject: Re: log_filename_prefix --> log_filename + strftime()

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