Re: Timezone into/out of function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Timezone into/out of function
Дата
Msg-id 473.1116539564@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Timezone into/out of function  ("Walker, Jed S" <Jed_Walker@cable.comcast.com>)
Список pgsql-novice
"Walker, Jed S" <Jed_Walker@cable.comcast.com> writes:
> I have two functions that have a timestamp wtz passed to and return
> timestamps wtz in a refcursor.  The catch is that I need the timezone on the
> timestamp passed out to match the timezone of the timestamp passed in.

You're misunderstanding how timestamp with time zone works.  There isn't
any explicitly stored zone in a timestamptz value --- it's all GMT under
the hood.  A zone is only introduced for display.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trigger Function Problem
Следующее
От: Timo Roessner
Дата:
Сообщение: datatype conversion on postgresql 7.4.1