Re: log_filename_prefix --> log_filename + strftime() - Mailing list pgsql-patches

From Ed L.
Subject Re: log_filename_prefix --> log_filename + strftime()
Date
Msg-id 200408292002.27440.pgsql@bluepolka.net
Whole thread Raw
In response to Re: log_filename_prefix --> log_filename + strftime()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: log_filename_prefix --> log_filename + strftime()  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-patches by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: dbsize contrib
Next
From: Bruce Momjian
Date:
Subject: Re: Autovbacuum Win32 service patch