Re: Custom aggragation function that creates an array - Mailing list pgsql-hackers

From David Fetter
Subject Re: Custom aggragation function that creates an array
Date
Msg-id 20101022180054.GC14734@fetter.org
Whole thread Raw
In response to Custom aggragation function that creates an array  (Leonardo Francalanci <m_lists@yahoo.it>)
Responses Re: Custom aggragation function that creates an array  (Leonardo Francalanci <m_lists@yahoo.it>)
List 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 by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Simplifying replication
Next
From: Alvaro Herrera
Date:
Subject: Re: Extensions, this time with a patch