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

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

From
"Kevin Grittner"
Date:
If you are going to roll this back in 8.1 to reevaluate the issue, I
think the ANSI/ISO standards should be reviewed as part of that
reevaluation.  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.

So, for example, you could specify:

-- to get the interval in days, hours, and minutes:
(timestampx - timestampy) day to minute

-- to get the interval in days, to 2 decimal places:
(timestampx - timestampy) day{2)

-- to get the interval in hours:
(timestampx - timestampy) hour


>>> Bruce Momjian <pgman@candle.pha.pa.us>  >>>

I guess my point is that we are changing 8.0.X behavior so we better be
sure it is now the way we want it to remain.



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

From
Tom Lane
Date:
"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