problem with the sum function - Mailing list pgsql-bugs

From Marco Kienzle
Subject problem with the sum function
Date
Msg-id 1020759898.14956.12.camel@PC535
Whole thread Raw
Responses Re: problem with the sum function
Re: problem with the sum function
List 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

Attachment

pgsql-bugs by date:

Previous
From: R Ravishankar
Date:
Subject: Re: Bug #651: Time difference of 30 in while reading in timestamp
Next
From: Tom Lane
Date:
Subject: Re: Bug #651: Time difference of 30 in while reading in timestamp