Timestamp with timezone question.

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Timestamp with timezone question.
Date: 2005-02-21 14:16:04
Message-ID: Pine.LNX.4.44.0502211557140.7123-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


AFAIK, the input for a timestamptz is converted and stored as UTC.
And outputing a timezonetz value converts the internally stored UTC
value to the current locale's timezone.

So there is not a way to actually store the original TZ itself,
whereas the timetz type clearly does that.

Consider a schema designed to store internet mail.

Since pgsql always converts a timestamptz to UTC, we have lost
the information of the Sender's local timezone.

Should i go with a separete date and timetz ?

--
-Achilleus

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message George Weaver 2005-02-21 14:55:39 Re: Working with XML.
Previous Message pginfo 2005-02-21 07:51:26 Re: pg primary key bug?