Re: Adding to a date/time?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding to a date/time?
Дата
Msg-id 25634.1032445277@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Adding to a date/time?  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:
> $ psql TMP -c "update invoices set req_del_date3='today+8' where id > 10"

You can't do arithmetic inside a timestamp literal.  The above actually
gets interpreted as "today" (meaning midnight) in timezone "+8", ie,
midnight 8 hours east of GMT.

            regards, tom lane

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

Предыдущее
От: "Ian Harding"
Дата:
Сообщение: Memory Errors...
Следующее
От: "Johnson, Shaunn"
Дата:
Сообщение: killing process question