Re: When it is better to use "timestamp without time zone"?

From: Emi Lu <emilu(at)cs(dot)concordia(dot)ca>
To: Michael Glaesemann <grzm(at)myrealbox(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: When it is better to use "timestamp without time zone"?
Date: 2006-01-04 14:26:09
Message-ID: 43BBDB01.1020205@cs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>> I need to know when it is better that we use "timestamp without time
>> zone" ? And when it is better to use "timestamp with time zone"?
>
> In my opinion, if you want to store a timestamp, you should always
> use timestamp with time zone, as the UTC offset information is
> necessary to provide a unique timestamp value.
>
In postgreSQL, the default value for timestamp is "without time zone".
Mysql supports the format as "2005-01-01 12:01:01" but not "2005-01-01
12:01:01+05" at the moment.

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?

Emi

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew - Supernews 2006-01-04 14:41:24 Re: When it is better to use "timestamp without time zone"?
Previous Message Devrim GUNDUZ 2006-01-04 14:06:57 Re: Anyone doing a 8.1.0-ia64-RHEL4-as.rpm ?