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 435F59EF020000250000025D@gwmta.wicourts.gov
Whole thread Raw
Responses Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals
List pgsql-hackers
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.



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals