Re: Trigger to convert UNIX time to timestamp without time zone. - Mailing list pgsql-general

From Kevin Grittner
Subject Re: Trigger to convert UNIX time to timestamp without time zone.
Date
Msg-id 1402251333.50435.YahooMailNeo@web122303.mail.ne1.yahoo.com
Whole thread Raw
In response to Re: Trigger to convert UNIX time to timestamp without time zone.  (Andrew Sullivan <ajs@crankycanuck.ca>)
List 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 by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Optimizer issue -- bad query plan?
Next
From: Bhushan Pathak
Date:
Subject: Re: PostgreSQL 9.2.4 + CentOS 6.5 64 bit - segfault error in initdb