Ruslan A Dautkhanov <rusland(at)scn(dot)ru> writes:> isbs=# SELECT count(i.*),sum(i.param1),sum(60-i.param1) FROM inlog i, ^^^^^^^^^^
Make that just count(*). I think you're running into the poor handlingof whole-row references.
regards, tom lane