Re: BUG #5354: Type timestamptz doesn't allow to store time zone

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <robertmhaas(at)gmail(dot)com>,<vitali(at)lumensoftware(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5354: Type timestamptz doesn't allow to store time zone
Date: 2010-03-02 13:35:32
Message-ID: 4B8CBFC4020000250002F77D@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Robert Haas wrote:
> Vitali wrote:

>> When I select from the table, the timetz has the correct time
>> zone, the timestamptz has -6 as a time zone, which is my server
>> default.
>
> I'm not sure what you think the bug is, but timestamptz definitely
> doesn't store the time zone in which the value is input. What it
> does is makes input and output relative to the then-current time
> zones rather than fixed wall-clock times.

We should probably add this to the FAQ -- the OP was expecting the
behavior specified by the standard, in which TIMESTAMP WITH TIME ZONE
includes a time zone.

-Kevin

Browse pgsql-bugs by date

  From Date Subject
Next Message Joshua Tolley 2010-03-02 15:32:13 Re: BUG #5357: PGAdmin: SQL Query Editor does not (always) open files
Previous Message Vincent Maury 2010-03-02 11:09:49 pg_dump -d