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:45:01
Message-ID: 200409201745.01628.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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.

Bummer. Typo as well. Suggest a portable way to get the offset?

Ed

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ed L. 2004-09-20 23:54:58 Re: log_filename_prefix --> log_filename + strftime()
Previous Message Tom Lane 2004-09-20 23:39:59 Re: log_filename_prefix --> log_filename + strftime()