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

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: [BUGS] BUG #1993: Adding/subtracting negative
Дата
Msg-id 435F59EF020000250000025D@gwmta.wicourts.gov
обсуждение исходный текст
Ответы Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals