Re: now() AT TIME ZONE interval '-5 hours' returns type interval???
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: now() AT TIME ZONE interval '-5 hours' returns type interval??? |
| Дата | |
| Msg-id | 14991.1047615022@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | now() AT TIME ZONE interval '-5 hours' returns type interval??? (Joshua Moore-Oliva <josh@chatgris.com>) |
| Ответы |
Re: now() AT TIME ZONE interval '-5 hours' returns type interval???
|
| Список | pgsql-general |
Joshua Moore-Oliva <josh@chatgris.com> writes:
> The problem I am having is when I attempt to convert a timestamp with a time
> zone to another time zone. For example, the statement
> SELECT now() AT TIME ZONE interval '-5 hours'
> returns type interval not timestamp with//out time zone.
This appears to be a simple typo in the pg_proc entry for the function.
The underlying C code thinks it is returning a timestamp without time
zone, but that's not what the pg_proc entry has.
You can fix this in an existing database by doing
UPDATE pg_proc SET prorettype = 1114 WHERE prosrc = 'timestamptz_izone';
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера