Re: [BUGS] BUG #1993: Adding/subtracting negative - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: [BUGS] BUG #1993: Adding/subtracting negative
Date
Msg-id 435F87B9020000250000027E@gwmta.wicourts.gov
Whole thread Raw
List pgsql-hackers
I hate to answer my own question, but I think I may have spotted
the issue.  I forgot that a TIMESTAMP WITH TIME ZONE is
actually stored without a time zone.  This datatype would need
to better comply with the ANSI/ISO standard for the ANSI/ISO
operations on them to work properly.

-Kevin


>>> "Kevin Grittner" <Kevin.Grittner@wicourts.gov>  >>>
I'm not seeing it.  It seems to me that timestamps can be defined
WITH or WITHOUT time zone, and the semantics of calculating an
interval are fairly clear in either case.  An interval doesn't seem
like it should have an associated time zone.  Adding an interval
to a timestamp would use the time zone of the timestamp.

What am I missing?

-Kevin


>>> Tom Lane <tgl@sss.pgh.pa.us>  >>>
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> The standard seems rich enough in this area to
> address all of the concerns I've seen expressed on this thread.
> All the usual advantages for standards compliance accrue, as well.

Last I checked, the standard completely failed to deal with daylight
savings time changes, making it pretty useless as a guide to solving
the problems we want to deal with.
        regards, tom lane


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate      subscribe-nomail command to
majordomo@postgresql.orgso that your      message can get through to the mailing list cleanly
 



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: add_missing_from breaks existing views
Next
From: Tom Lane
Date:
Subject: Re: pidfile location missing after restarting crashed server in 8.1