Re: Custom aggragation function that creates an array

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Custom aggragation function that creates an array
Дата
Msg-id 20101022180054.GC14734@fetter.org
обсуждение исходный текст
Ответ на Custom aggragation function that creates an array  (Leonardo Francalanci <m_lists@yahoo.it>)
Ответы Re: Custom aggragation function that creates an array  (Leonardo Francalanci <m_lists@yahoo.it>)
Список pgsql-hackers
On Fri, Oct 22, 2010 at 02:02:48PM +0100, Leonardo Francalanci wrote:
> Hi,
> 
> I want to write a custom agg function that, given an "int4 index",
> increments the element at "index" of an array and, at the end,
> returns the array.  The array will always be int4[].

Before you start coding, have you looked over what's in
contrib/intarray ?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Simplifying replication
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Extensions, this time with a patch