Newbie hacker looking to get started

Поиск
Список
Период
Сортировка
Искать

Newbie hacker looking to get started

От:
Greg Stark <gsstark@mit.edu>
Дата:

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


Re: Newbie hacker looking to get started

От:
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Дата:
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" 
To: 
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
>


FAQ