Re: Call to build-in operator from new operator

From: "John Hansen" <john(at)geeknet(dot)com(dot)au>
To: <kim(at)billes(dot)dk>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Call to build-in operator from new operator
Date: 2005-04-19 04:12:23
Message-ID: 5066E5A966339E42AA04BA10BA706AE56291@rodrick.geeknet.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Use the DirecFunctionCall1, DirecFunctionCall2, etc. functions.

... John

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of kim(at)billes(dot)dk
> Sent: Monday, April 18, 2005 10:40 PM
> To: pgsql-hackers(at)postgresql(dot)org
> Subject: [HACKERS] Call to build-in operator from new operator
>
> Greetings,
>
> I don't really know if this is the correct place to ask this
> question, if not please direct me to the correct mailing list.
>
> I'm trying to develop a new operator for PostGreSQL (actually
> for TelegraphCQ, which is an extension of PSQL). Part of the
> operator's procedure is the @-operator. So now my question
> is: How do I call the on_pb function from inside my own function?.
> The on_pb of course takes the argument 'PG_FUNCTION_ARGS'
> which is defined in fmgr.h as 'FunctionCallInfo fcinfo' which
> is defined as pointer to 'struct FunctionCallInfoData', so my
> question boils down to:
>
> What do I put into this struct to call 'on_pb' with two
> arguments from the call to my function?
>
>
> Further, is there a way to access data in tables in the
> database other than those given as arguments to the function? And how?
>
> Sincerely
> Kim Bille
> Department of Computer Science
> Aalborg University
> Denmark
>
> --
> "Mind are like parachutes --- they only work when open"
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-04-19 04:46:06 Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for
Previous Message Dinesh Pandey 2005-04-19 04:04:41 Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables