Re: Timestamp vs timestamptz - Mailing list pgsql-general

From Agent M
Subject Re: Timestamp vs timestamptz
Date
Msg-id 35c281a98e63653314971dc6a761744d@themactionfaction.com
Whole thread Raw
In response to Re: Timestamp vs timestamptz  (David Fetter <david@fetter.org>)
Responses Re: Timestamp vs timestamptz  (Michael Glaesemann <grzm@seespotcode.net>)
Re: Timestamp vs timestamptz  (Florian Weimer <fweimer@bfk.de>)
List pgsql-general
But watch out! This is mentioned in the docs but it bit me when I used
timestamp with time zone so:

timestamp with time zone does not record the timezone you inserted it
with- it simply stores the GMT version and converts to whatever
timezone you like on demand. If the timezone is important data, you
will need an extra column for it. For example, flight arrival
information should probably include the timezone of the destination.

-M

On Jul 13, 2006, at 8:04 PM, David Fetter wrote:

> On Thu, Jul 13, 2006 at 04:35:20PM -0700, Antimon wrote:
>> Hi,
>> I'm working on a web project with pgsql, i did use mysql before and
>> stored epoch in database so i'm not familiar with these datatypes.
>>
>> What i wanna ask is, if i don't need to display timestamps in
>> different timezones,
>
> Not this week, but who knows about next week?
>
>> shall i use timestamptz anyway?
>
> Yes.  Timestamptz is the one. :)

¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
agentm@themactionfaction.com
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Need help with quote escaping in exim for postgresql
Next
From: Michael Glaesemann
Date:
Subject: Re: Timestamp vs timestamptz