BUG #2117: inconsistency in sum

Поиск
Список
Период
Сортировка
От Adam Kolany
Тема BUG #2117: inconsistency in sum
Дата
Msg-id 20051215110355.50EEAF0B3F@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2117: inconsistency in sum  (Michael Fuhr <mike@fuhr.org>)
Re: BUG #2117: inconsistency in sum  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2117
Logged by:          Adam Kolany
Email address:      dr.a.kolany@wp.pl
PostgreSQL version: 8.0.1
Operating system:   Linux, SuSe 9.2
Description:        inconsistency in sum
Details:

can you explain this?
======================================================
stoff=> select sum(wplyw),sum(wydatek), sum(wplyw)-sum(wydatek) from
rachunki where okres<6;
  sum  |   sum   | ?column?
-------+---------+----------
 73745 | 6712.55 |  67032.5
(1 row)

stoff=>
======================================================

in real, the 'sum(wplyw)' should be:  73745,05

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2113: PostgreSQL hangs after running for 2 days
Следующее
От: "Jon Keating"
Дата:
Сообщение: BUG #2116: Searching text fields does not work in EUC_JP