Re: sum of array elements

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Thomas Keller <kellert(at)ohsu(dot)edu>
Cc: "Devin Ben-Hur" <devin(at)ben-hur(dot)net>, "Postgresql PDX_Users" <pdxpug(at)postgresql(dot)org>
Subject: Re: sum of array elements
Date: 2008-10-24 16:48:16
Message-ID: 5EE02B1D-4E89-4D3C-BCE2-5589753EA8A9@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pdxpug

On Oct 24, 2008, at 09:36, Thomas Keller wrote:

> I got an error when I gave ( an_array ) as the input type. So I
> changed that to ( DECIMAL [] ) and it worked great.

Try anyarray. That will allow it to work with other numeric types.

Best,

David

In response to

Browse pdxpug by date

  From Date Subject
Next Message Devin Ben-Hur 2008-10-25 05:14:56 Re: sum of array elements
Previous Message Thomas Keller 2008-10-24 16:36:20 Re: sum of array elements