| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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 | Content-Type | Size |
|---|---|---|
| filename.diff | text/x-diff | 9.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2004-08-30 03:17:35 | Re: Autovbacuum Win32 service patch |
| Previous Message | Andreas Pflug | 2004-08-29 21:53:54 | Re: log_filename_prefix --> log_filename + strftime() |