Re: log_filename_prefix --> log_filename + strftime()

Поиск
Список
Период
Сортировка
От Ed L.
Тема Re: log_filename_prefix --> log_filename + strftime()
Дата
Msg-id 200409201754.58119.pgsql@bluepolka.net
обсуждение исходный текст
Ответ на Re: log_filename_prefix --> log_filename + strftime()  ("Ed L." <pgsql@bluepolka.net>)
Ответы Re: log_filename_prefix --> log_filename + strftime()
Список 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@bluepolka.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


В списке pgsql-patches по дате отправления:

Предыдущее
От: "Ed L."
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()