Re: Log line prefix on win32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Log line prefix on win32
Дата
Msg-id 14017.1097255589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Log line prefix on win32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Log line prefix on win32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Log line prefix on win32  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I was thinking of adding %z as an option to log_line prefix, so to get
> the current output you would do '%t %z'.  I was not suggesting changing
> the %Z passed to strftime if they ask for timezone.

I think this is a bad idea, mainly because you couldn't easily get the
same output.  It would be almost the same, except when you crossed a DST
boundary in between the two calls to strftime; in which case you'd get a
completely misleading result.

I believe that in the long run we will stop using the platform-specific
strftime at all, and go over to using just our own code, which makes
this not a permanent problem but just an artifact of the fact that we
haven't completely finished the process of absorbing src/timezone/.
So I'd rather not invent an API element simply because Windows' strftime
sucks.
        regards, tom lane


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

Предыдущее
От: Yann Michel
Дата:
Сообщение: Re: plans for bitmap indexes?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: plans for bitmap indexes?