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

From Tom Lane
Subject Re: log_filename_prefix --> log_filename + strftime()
Date
Msg-id 24084.1093929576@sss.pgh.pa.us
Whole thread Raw
In response to Re: log_filename_prefix --> log_filename + strftime()  ("Ed L." <pgsql@bluepolka.net>)
List pgsql-patches
"Ed L." <pgsql@bluepolka.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

pgsql-patches by date:

Previous
From: "Ed L."
Date:
Subject: Re: log_filename_prefix --> log_filename + strftime()
Next
From: Andreas Pflug
Date:
Subject: Re: log_filename_prefix --> log_filename + strftime()