Re: PGparam timestamp question

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: PGparam timestamp question
Дата
Msg-id 200712091226.23526.xzilla@users.sourceforge.net
обсуждение исходный текст
Ответ на Re: PGparam timestamp question  (Andrew Chernow <ac@esilo.com>)
Список pgsql-hackers
On Sunday 09 December 2007 11:54, Andrew Chernow wrote:
> Okay, thanks.  So using WITHOUT TIME ZONE basically means, store the
> provided value as UTC.  Meaning, 8AM EST NOW() is stored/treated as 8AM
> UTC.
>

Not quite. Using WITHOUT TIME ZONE means to not store any time zone 
information. It appears as UTC only because you selected it out as UTC. 

pagila=# select now(), now() at time zone 'PST' , now()::timestamp at time 
zone 'PST';
-[ RECORD 1 ]---------------------------
now      | 2007-12-09 12:25:19.240661-05
timezone | 2007-12-09 09:25:19.240661
timezone | 2007-12-09 15:25:19.240661-05

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: whats the deal with -u ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PGparam timestamp question