Re: Timestamp weirdness - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Timestamp weirdness
Date
Msg-id 42E58DF6.6040406@opencloud.com
Whole thread Raw
In response to Re: Timestamp weirdness  ("emergency.shower@gmail.com" <emergency.shower@gmail.com>)
List pgsql-jdbc
emergency.shower@gmail.com wrote:

> If I TIMESTAMP WITH TIME ZONE is implemented on the server as a
> (timestamp, time zone)-pair

It's not, it's just a timestamp in UTC with no timezone stored.

> , the server should be able to cast
> TIMESTAMP WITH TIME ZONE correctly to TIMESTAMP WITHOUT TIME ZONE as
> described in the SQL standard:
>
> From TIMESTAMP WITH TIME ZONE to TIMESTAMP WITHOUT TIME ZONE
>  TargetValue = SourceValue.UTC + SourceValue.TimeZone

I'd like to see this too, but Tom doesn't like it for
backwards-compatibility reasons.

-O

pgsql-jdbc by date:

Previous
From: "emergency.shower@gmail.com"
Date:
Subject: Re: Timestamp weirdness
Next
From: Oliver Jowett
Date:
Subject: work in progress: timestamp patch