Re: adding operators - Mailing list pgsql-hackers

From D'Arcy J.M. Cain
Subject Re: adding operators
Date
Msg-id 20071001025357.aacc36c1.darcy@druid.net
Whole thread Raw
In response to Re: adding operators  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-hackers
On Mon, 1 Oct 2007 12:38:07 +1000
"Brendan Jurd" <direvus@gmail.com> wrote:
> On 10/1/07, Islam Hegazy <islheg@gmail.com> wrote:
> > I am a graduate student in the University of Calgary. I want to add some new
> > operators to PostgreSQL to perform some specific tasks in a project I am
> > working in. My problem is that I cannot find my way into the code, where
> > should I start and where to find the documentation for the code.
> 
> There's no need to hack Postgres to add operators.  You can do so by
> defining functions using CREATE FUNCTION, and then hooking operators
> up to them using CREATE OPERATOR.

And if you need to add C code you can do that too.  Check some examples
in contrib such as my chkpass module for examples.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Latest ecpg patch broke MSVC build
Next
From: "Anoo Sivadasan Pillai"
Date:
Subject: ERROR: invalid byte sequence from psql - Works perfectly from pgAdmin III query window