Call to build-in operator from new operator - Mailing list pgsql-hackers

From Kim Bille
Subject Call to build-in operator from new operator
Date
Msg-id a9611f0005041805343157e9dd@mail.gmail.com
Whole thread Raw
Responses Re: Call to build-in operator from new operator  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
List pgsql-hackers
Greetings,<br /><br /> I don't really know if this is the correct place to ask this question, if not please direct me
tothe correct mailing list.<br /><br /> I'm trying to develop a new operator for PostGreSQL (actually for TelegraphCQ,
whichis an extension of PSQL). Part of the operator's procedure is the @-operator. So now my question is: How do I call
theon_pb function from inside my own function?.<br /> The on_pb of course takes the argument 'PG_FUNCTION_ARGS' which
isdefined in fmgr.h as 'FunctionCallInfo fcinfo' which is defined as pointer to<br /> 'struct FunctionCallInfoData', so
myquestion boils down to:<br /><br /> What do I put into this struct to call 'on_pb' with two arguments from the call
tomy function?<br /><br /><br /> Further, is there a way to access data in tables in the database other than those
givenas arguments to the function? And how?<br /><br />Sincerely<br /> Kim Bille<br /> Department of Computer
Science<br/> Aalborg University<br /> Denmark<br /><br />-- <br />"Mind are like parachutes --- they only work when
open" 

pgsql-hackers by date:

Previous
From: "Chuck McDevitt"
Date:
Subject: Re: argtype_inherit() is dead code
Next
From: Christopher Browne
Date:
Subject: Re: Urgent