Timezone into/out of function

Поиск
Список
Период
Сортировка
От Walker, Jed S
Тема Timezone into/out of function
Дата
Msg-id 41669DC6FE3B80449A33A4DD46DB370A0D1EE837@entcoexch15.broadband.att.com
обсуждение исходный текст
Ответы Re: Timezone into/out of function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice

Hi,

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. I realize I can set the timezone parameter before making the call, but I'm concerned that if a user calls it with a timezone that is different than the timezone parameter the date they get won't match the timezone they requested.

Is there a way I can specify timezone as a parameter and force the timestamps in the where and select clauses to use that timezone? (without having to set the timezone parameter in the session)

Thanks

Jed.

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

Предыдущее
От: Pierre Couderc
Дата:
Сообщение: How to deal with large object?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trigger Function Problem