Re: [HACKERS] Warning!!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Warning!!
Дата
Msg-id 19465.913483887@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Warning!!  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] Warning!!  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> Should I add this to the TODO list?
>> 
>> What's needed is explicit rounding.  Instead of letting the compiler do
>> the rounding during its implicit float-to-int conversion (which
>> generally truncates towards 0 or towards -infinity), do
>> [snip]
>> The other cash functions also need to be looked at for rounding
>> sloppiness, so I see no point in committing this fix by its lonesome.

Yes, that still needs to be dealt with. I suggest
* Fix roundoff problems in "cash" datatype.

Actually, the whole cash datatype ought to be obsoleted by real
fixed-point-numeric support, but that's a *much* bigger project...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Pascal André"
Дата:
Сообщение: Re: [HACKERS] 6.4.1 release
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Patch for PostgreSQL 6.4-BETA5: pgsql/src/backend/port/getrusage.c