Re: Timestamp in PG - 7.1 & 7.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Timestamp in PG - 7.1 & 7.2
Дата
Msg-id 22677.1060096491@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Timestamp in PG - 7.1 & 7.2  ("Anagha Joshi" <ajoshi@nulinkinc.com>)
Список pgsql-sql
"Anagha Joshi" <ajoshi@nulinkinc.com> writes:
> Here is output from PostgreSQL 7.2.4:
> =20
> trapdb=3D# select cast(datetime(1057637700) as timestamp);
>          timestamp
> ---------------------------
>  2003-07-07 22:45:00+05:30
> (1 row)
> =20
> I've migrated from PG - 7.1.2 to 7.2.4.

Not sure why 7.2 is misbehaving here --- it looks to me like it's adding
instead of subtracting the timezone offset, but I don't see any mention
of having fixed such a bug in the CVS logs.

I'd suggest changing your code to abstime(n) instead of datetime(n) ---
you will have to do that when you update to 7.3 anyway, and it gets the
right answer on 7.2.
        regards, tom lane


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

Предыдущее
От: Scott Cain
Дата:
Сообщение: Re: [PERFORM] EXTERNAL storage and substring on long strings
Следующее
От: Joe Conway
Дата:
Сообщение: Re: [PERFORM] EXTERNAL storage and substring on long strings