Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group