Re: timestamp with time zone - Mailing list pgsql-general

From Scott Marlowe
Subject Re: timestamp with time zone
Date
Msg-id dcc563d10712130857j633aa80fvcc71a86bbce50133@mail.gmail.com
Whole thread Raw
In response to timestamp with time zone  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-general
On Dec 12, 2007 11:10 PM, Tatsuo Ishii <ishii@sraoss.co.jp> wrote:
> Hi,
>
> Can someone enlighten me?
>
> I know that I can insert date/time data along with time zone info into
> the timestamp with time zone data type. My question is, can I extract
> the *original* time zone info afterward? I seems impossible.

Yep, that's correct.  Basically, when you store a timestamp with
timezone, postgresql converts it to UTC and stores that.  when you get
it back, it converts it to the timezone of the client currently
connected. If you want to store the timezone you'll have to create
another field to hold that.

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: index organized tables use case
Next
From: Erik Jones
Date:
Subject: Re: autovacuum log?