Re: Custom aggragation function that creates an array

From: David Fetter <david(at)fetter(dot)org>
To: Leonardo Francalanci <m_lists(at)yahoo(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Custom aggragation function that creates an array
Date: 2010-10-22 18:00:54
Message-ID: 20101022180054.GC14734@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2010-10-22 18:35:52 Re: Extensions, this time with a patch
Previous Message Josh Berkus 2010-10-22 17:34:07 Re: Simplifying replication