
I was thinking of hacking on postgres a bit. I want to start with filling out
the operations list for data types that seem to be missing obvious operators.

In particular I'm thinking of things like 

. an aggregate function for cidr that would find the smallest enclosing netblock.
. an aggregate function for box, point, etc for the bounding box

I had some other ideas but I don't remember them now. 

Anyways, I'm a bit stumped where to start. Looking at the existing operations
there seems to be a bit of magic using macros involved in creating
accumulators and result sets that I don't get.

Is there a walk-through of a typical datatype and how to code an operator
somewhere?

-- 
greg


30 Nov 2002 17:41:09 -0500
Greg Stark <gsstark@mit.edu>
Newbie hacker looking to get started
How about:

http://www3.us.postgresql.org/users-lounge/docs/7.2/postgres/xoper.html

and

http://www3.us.postgresql.org/users-lounge/docs/7.2/postgres/xaggr.html

Doesn't seem to have actual examples in C tho.

Chris

----- Original Message -----
From: "Greg Stark" <gsstark@mit.edu>
To: <pgsql-hackers@postgresql.org>
Sent: Saturday, November 30, 2002 2:41 PM
Subject: [HACKERS] Newbie hacker looking to get started


>
> I was thinking of hacking on postgres a bit. I want to start with filling
out
> the operations list for data types that seem to be missing obvious
operators.
>
> In particular I'm thinking of things like
>
> . an aggregate function for cidr that would find the smallest enclosing
netblock.
> . an aggregate function for box, point, etc for the bounding box
>
> I had some other ideas but I don't remember them now.
>
> Anyways, I'm a bit stumped where to start. Looking at the existing
operations
> there seems to be a bit of magic using macros involved in creating
> accumulators and result sets that I don't get.
>
> Is there a walk-through of a typical datatype and how to code an operator
> somewhere?
>
> --
> greg
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


Sat, 30 Nov 2002 15:48:34 -0800
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: Newbie hacker looking to get started