Re: [HACKERS] Date/time on glibc2 linux

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [HACKERS] Date/time on glibc2 linux
Дата
Msg-id 36745CAD.8E4F2EC1@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] Date/time on glibc2 linux  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Date/time on glibc2 linux  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] Date/time on glibc2 linux  (Oleg Broytmann <phd@sun.med.ru>)
Re: [HACKERS] Date/time on glibc2 linux  (Oleg Broytmann <phd@sun.med.ru>)
Re: [HACKERS] Date/time on glibc2 linux  (Oleg Broytmann <phd@sun.med.ru>)
Список pgsql-hackers
> Well, we have a bug report against 6.4, so my inclination is to change
> it in both trees.  We know that the current code is broken on at least
> one major platform.  I think that outweighs the unproven possibility
> that the other way might be broken somewhere...

OK, I applied the fix (confined to backend/utils/adt/nabstime.c) to both
CVS trees. This swaps the checking of HAVE_INT_TIMEZONE and HAVE_TM_ZONE
so that the TM_ZONE takes precedence.

This single-file patch should be a candidate for removal if others run
into trouble when testing.

One thing I wasn't certain about was the use of #error in non-gcc
compilers. Is that a standard feature?
                     - Tom


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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] Case statement ready!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Bad libraries again in latest snapshot , libpgtcl and pltcl