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

Re: log_filename_prefix --> log_filename + strftime()

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org, Jan Wieck <JanWieck(at)Yahoo(dot)com>,Andreas Pflug <pgadmin(at)pse-consulting(dot)de>,Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-30 02:02:27
Message-ID: 200408292002.27440.pgsql@bluepolka.net (view raw or flat)
Thread:
Lists: pgsql-patches
On Saturday August 28 2004 9:30, Bruce Momjian wrote:
> Are we going to change this before beta2?  I have not seen a final
> patch yet.

Attached is a revised patch:

	+ changes postgresql.conf option 'log_filename_prefix' to 'log_filename', 
and adds strftime() escape interpolation;
	+ set default log_filename to 'postgresql-%Y-%m-%d_%H%M%S.log';
	+ added postgresql.conf boolean option 'log_truncate_on_rotation', default 
false; 
	+ log truncation is performed only on time-driven rotations and only when 
log_truncate_on_rotation is true;

I did not add UTC offset logic nor logic to shift to top of the hour/day for 
rotation periods of 60/1440 minutes, but would like to add that shortly if 
time permits.

Ed

Attachment: filename.diff
Description: text/x-diff (9.6 KB)

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-08-30 03:17:35
Subject: Re: Autovbacuum Win32 service patch
Previous:From: Andreas PflugDate: 2004-08-29 21:53:54
Subject: Re: log_filename_prefix --> log_filename + strftime()

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