Re: multiple paramters in aggregate function

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Sim Zacks <sim(at)compulab(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: multiple paramters in aggregate function
Date: 2009-08-13 14:25:32
Message-ID: 20090813142532.GE5909@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scara Maccai 2009-08-13 14:26:04 Re: totally different plan when using partitions
Previous Message Philip Rhoades 2009-08-13 14:20:32 PostgreSQL for Firefox Bookmarks?