| From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: A single escape required for log_filename | 
| Date: | 2009-01-13 21:47:50 | 
| Message-ID: | 1231883270.6774.99.camel@jd-laptop.pragmaticzealot.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Tue, 2009-01-13 at 16:20 -0500, Tom Lane wrote:
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
> > When I set it up, it automatically appended the time so I got:
> > postgresql.log.1231878270
> > That seems a bit, well wrong. If I say I want postgresql.log I should
> > get postgresql.log.
> 
> You'd probably reconsider around the time the log file filled your disk.
> You really *don't* want a single fixed filename, you want some kind of
> rotation series.
I have perfectly good log rotation utility that exists on my OS. (yes I
am aware of the possibility of losing a log entry when using logrotate).
The behavior is counter-intuitive. I can either ask for a fixed filename
or I can't. PostgreSQL shouldn't say, "I know what you meant, you meant
to put a timestamp on the end".
The behavior does not appear to be documented in the code or in the
docs. (I can submit a patch for that of course)
Sincerely,
Joshua D. Drake
> 
> 			regards, tom lane
> 
-- 
PostgreSQL
   Consulting, Development, Support, Training
   503-667-4564 - http://www.commandprompt.com/
   The PostgreSQL Company, serving since 1997
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2009-01-13 21:58:46 | Re: A single escape required for log_filename | 
| Previous Message | Gregory Williamson | 2009-01-13 21:30:45 | Re: A single escape required for log_filename |