Re: log_filename_prefix --> log_filename + strftime()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org, Jan Wieck <JanWieck(at)Yahoo(dot)com>, Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Subject: Re: log_filename_prefix --> log_filename + strftime()
Date: 2004-08-31 05:19:36
Message-ID: 24084.1093929576@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

"Ed L." <pgsql(at)bluepolka(dot)net> writes:
> One idea for handling the round-to-localtime issue from the other end of the
> problem: optionally rotate logs upon an *interpolated* filename change.

The code-as-committed wants to be able to predict the time change in
advance. I'm not totally wedded to that, but I don't want to do a
strftime every time through the main loop, either ...

> I also noticed pg_tm.tm_gmtoff is apparently not set, at least not for my
> local (US MT).

It works for me. You want to look into why not for you?

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Andreas Pflug 2004-08-31 08:55:26 Re: log_filename_prefix --> log_filename + strftime()
Previous Message Ed L. 2004-08-31 05:07:24 Re: log_filename_prefix --> log_filename + strftime()