Re: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends
Дата
Msg-id ZXbi3xo7QhQIe1YN@paquier.xyz
обсуждение исходный текст
Ответ на BUG #18240: Undefined behaviour in cash_mul_flt8() and friends  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Mon, Dec 11, 2023 at 06:00:02AM +0000, PG Bug reporting form wrote:
> The following multiplication:
> SELECT 1_000_000_000::money * 1_000_000_000::float8;
>
> gives the incorrect result:
>  -$92,233,720,368,547,758.08

Yep, good catch.  Reproduced here.
--
Michael

Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead