Re: Trigger to convert UNIX time to timestamp without time zone.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Trigger to convert UNIX time to timestamp without time zone.
Дата
Msg-id 1402251333.50435.YahooMailNeo@web122303.mail.ne1.yahoo.com
обсуждение исходный текст
Ответ на Re: Trigger to convert UNIX time to timestamp without time zone.  (Andrew Sullivan <ajs@crankycanuck.ca>)
Список pgsql-general
Andrew Sullivan <ajs@crankycanuck.ca> wrote:

> Are you sure you want this without time zone?  In my experience,
> almost every time people think they want "without time zone" they
> actually don't.

+1

Basically, if you want to capture a moment in time, such as when
some event happened or some measurement was taken, you want
timestamp WITH time zone.  If you want to know what was (or will
be) showing on a clock in some particular time zone at a moment in
time, you want timestamp WITHOUT time zone.  The names tend to
mislead one on the semantics of these types.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Optimizer issue -- bad query plan?
Следующее
От: Bhushan Pathak
Дата:
Сообщение: Re: PostgreSQL 9.2.4 + CentOS 6.5 64 bit - segfault error in initdb