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

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

pgsql-patches by date

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

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