Re: multiple paramters in aggregate function - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: multiple paramters in aggregate function
Date
Msg-id 20090813142532.GE5909@alvh.no-ip.org
Whole thread Raw
In response to multiple paramters in aggregate function  (Sim Zacks <sim@compulab.co.il>)
List pgsql-general
Sim Zacks wrote:
> According to the documentation, you can pass multiple parameters into an
> aggregate function, but it only stores one value.
>
>
> What I am trying to do is sum a quantity field, but it also has units
> that need to be converted.

Have you seen Martijn van Oosterhout's tagged types?

http://svana.org/kleptog/pgsql/taggedtypes.html

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: totally different plan when using partitions
Next
From: Scara Maccai
Date:
Subject: Re: totally different plan when using partitions