Skip site navigation (1) Skip section navigation (2)

Re: adding operators

From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Islam Hegazy" <islheg(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: adding operators
Date: 2007-10-01 02:38:07
Message-ID: 37ed240d0709301938t3cd9ac34h160e51aee954c752@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On 10/1/07, Islam Hegazy <islheg(at)gmail(dot)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.

http://www.postgresql.org/docs/8.2/static/xoper.html
http://www.postgresql.org/docs/8.2/static/sql-createoperator.html

Regards,
BJ

In response to

Responses

pgsql-hackers by date

Next:From: Chris BrowneDate: 2007-10-01 02:45:38
Subject: Re: 8.3 beta timing
Previous:From: Islam HegazyDate: 2007-10-01 00:12:08
Subject: adding operators

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group