Re: [GENERAL] now() AT TIME ZONE 'GMT';

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [GENERAL] now() AT TIME ZONE 'GMT';
Дата
Msg-id 3CB288BD.DEBCD0B6@fourpalms.org
обсуждение исходный текст
Список pgsql-hackers
(on -hackers)

> If you apply the AT TIME ZONE operator to a TIMESTAMP WITH TIME ZONE
> value, what happens is the internal GMT value is rotated to the
> specified zone and then the output is labeled as type TIMESTAMP WITHOUT
> TIME ZONE, preventing any further automatic zone rotations.

Hmm. That is how it probably *should* work, but at the moment the
timestamptz_zone() function actually outputs a character string! That is
a holdover from previous versions which did not have a "no zone"
timestamp; it would seem now to be more appropriate to output a no-zone
timestamp.

I'll look at changing this in my upcoming patch set...
                   - Thomas


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Strange problem when upgrading to 7.2 with pg_upgrade.
Следующее
От: Karel Zak
Дата:
Сообщение: Re: timeout implementation issues