Re: multiple paramters in aggregate function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: multiple paramters in aggregate function
Дата
Msg-id 20090813142532.GE5909@alvh.no-ip.org
обсуждение исходный текст
Ответ на multiple paramters in aggregate function  (Sim Zacks <sim@compulab.co.il>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: totally different plan when using partitions
Следующее
От: Scara Maccai
Дата:
Сообщение: Re: totally different plan when using partitions