Re: [HACKERS] Interval aggregate regression failure (expected seems
В списке pgsql-patches по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Interval aggregate regression failure (expected seems |
| Дата | |
| Msg-id | 27584.1157312867@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Interval aggregate regression failure (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: [HACKERS] Interval aggregate regression failure
|
| Список | pgsql-patches |
Bruce Momjian <bruce@momjian.us> writes:
> Is this non-datetime integer only or both? I cannot reproduce the
> failure here.
On HPPA with float datetimes with today's code, Michael's case works
but it took me less than two minutes to find one that doesn't:
regression=# select interval '14 mon' * 8.2 as product_h;
product_h
---------------------------------
9 years 6 mons 23 days 24:00:00
(1 row)
I reiterate my comment that this approach will never work; any small
amount of experimentation will turn up cases that don't round correctly
on one platform or another. Float arithmetic is inherently inexact.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера