Oliver Elphick <olly(at)lfix(dot)co(dot)uk> writes:
> On Tue, 2002-09-03 at 11:45, Doppelganger wrote:
>> How can I convert sum(interval) to seconds?
> Here's one way;
> junk=# select extract (minute from sum(if)) * 60 + extract (second
> from sum(if)) from i;
EXTRACT(EPOCH FROM interval) is designed for this ...
regards, tom lane