| From: | Andrew - Supernews <andrew+nonews(at)supernews(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: When it is better to use "timestamp without time zone"? |
| Date: | 2006-01-04 14:41:24 |
| Message-ID: | slrndrnnkk.2iki.andrew+nonews@atlantis.supernews.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 2006-01-04, Emi Lu <emilu(at)cs(dot)concordia(dot)ca> wrote:
> In postgreSQL, the default value for timestamp is "without time zone".
That's true only because the SQL standard says so, not because it's actually
a good idea to use timestamps without time zone.
> Can I say when data is used among diff time zones, timestamp with time
> zone is a MUST; otherwise, timestamp without time zone is used?
No. You should, IMO, use timestamp with time zone in essentially all cases.
(In particular, you should _always_ use it for recording the time at which
an event happened, which covers most uses of timestamps.) Only use timestamp
without time zone for data storage if you have a specific reason to do so.
--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Emi Lu | 2006-01-04 15:07:54 | Re: When it is better to use "timestamp without time zone"? |
| Previous Message | Emi Lu | 2006-01-04 14:26:09 | Re: When it is better to use "timestamp without time zone"? |