Re: [BUGS] BUG #1993: Adding/subtracting negative

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: <pgman(at)candle(dot)pha(dot)pa(dot)us>, <mike(at)fuhr(dot)org>, <kg(at)kgb(dot)une(dot)edu(dot)au>, <grzm(at)myrealbox(dot)com>, <pgsql-hackers(at)postgreSQL(dot)org>, <mr-russ(at)pws(dot)com(dot)au>, <hb(at)x256(dot)com>
Subject: Re: [BUGS] BUG #1993: Adding/subtracting negative
Date: 2005-10-26 18:42:16
Message-ID: 435F87B9020000250000027E@gwmta.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Grittner(at)wicourts(dot)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(at)sss(dot)pgh(dot)pa(dot)us> >>>
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)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(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-10-26 18:59:55 Re: pidfile location missing after restarting crashed server in 8.1
Previous Message David Fetter 2005-10-26 18:16:01 Re: add_missing_from breaks existing views