Re: Aggregate Functions Template

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Mark Fenbers <Mark(dot)Fenbers(at)noaa(dot)gov>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Aggregate Functions Template
Date: 2005-05-19 20:56:11
Message-ID: 20050519205611.GA92458@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, May 19, 2005 at 03:17:07PM -0400, Mark Fenbers wrote:
>
> I need to create an aggregate function to do some math not currently
> provided by the available tools. Can someone point to an example
> aggregate function syntax that I can use as a template for my own
> function. I'm still a little green on some aspects of PostgreSQL and am
> drawing a blank on how to do this properly from scratch.

The General Bits newsletter has a few examples that might be helpful,
even if they're not quite what you're after:

http://www.varlena.com/varlena/GeneralBits/109.php
http://www.varlena.com/varlena/GeneralBits/4.html

There are sure to be some examples in the list archives -- just
search for "create aggregate":

http://archives.postgresql.org/

If these links don't help, then please post more details about what
you're trying to do and what trouble you're having. If you have
any code that doesn't work the way you want but that helps show
what you're after, then go ahead and post it with an explanation
of what it does (or doesn't do) and what you'd like it to do (or
not do).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mark Fenbers 2005-05-20 10:25:41 Re: Aggregate Functions Template
Previous Message Mark Fenbers 2005-05-19 19:17:07 Aggregate Functions Template