problem with the sum function

Поиск
Список
Период
Сортировка
От Marco Kienzle
Тема problem with the sum function
Дата
Msg-id 1020759898.14956.12.camel@PC535
обсуждение исходный текст
Ответы Re: problem with the sum function  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: problem with the sum function  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-bugs
The following problem occur using the sum() function (see the attached
file for all the details and an example):
    - if you use it on a portion of a table (example: table age) you get a
result that differ from the one you can get by hand (see the whole table
temp1 and do the sum by hand)
    - if you use the sum() function on the complete table (i.e. if you
first create a temporary table and then run the sum() function) then you
get the right result (see example on temp1).

Conclusion: I am not sure its really a bug but this differences can be
really misleading.

Have a nice day,
marco
--
____________________________________________________________________________

Marco Kienzle
Fisheries Research Services
Marine Laboratory
PO Box 101 Victoria Road
Aberdeen AB119DB
United Kingdom

tel: +44 (0) 1224 876544
direct: +44 (0) 1224 295412
fax: +44 (0) 1224 295511
http://www.marlab.ac.uk

Вложения

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

Предыдущее
От: R Ravishankar
Дата:
Сообщение: Re: Bug #651: Time difference of 30 in while reading in timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #651: Time difference of 30 in while reading in timestamp