Re: log_filename_prefix --> log_filename + strftime()

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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-09-20 23:54:58
Message-ID: 200409201754.58119.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Monday September 20 2004 5:45, Ed L. wrote:
> On Monday September 20 2004 5:39, Tom Lane wrote:
> > "Ed L." <pgsql(at)bluepolka(dot)net> writes:
> > > + /*
> > > + * We expect a strftime(%z) result of the form "[+-]HHMM"
> > > according to + * RFC822-conformant dates, where HH:MM is the
> > > unsigned UTC offset. + * If we don't get it, just return zero
> > > offset, and let the logs + * rotate on UTC time boundaries.
> > > + */
> > > +
> > > + count = strftime(msg, 6, "%z", localtime(&now));
> >
> > That might work for you, but it's not portable.

Do you consider pg_tm.tm_gmtoff reliable and portable from
pg_localtime(&now)?

Ed

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-09-21 00:02:55 Re: log_filename_prefix --> log_filename + strftime()
Previous Message Ed L. 2004-09-20 23:45:01 Re: log_filename_prefix --> log_filename + strftime()