Re: How PG_FUNCTION_ARG works in PG - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How PG_FUNCTION_ARG works in PG
Date
Msg-id 18496.1128610933@sss.pgh.pa.us
Whole thread Raw
In response to How PG_FUNCTION_ARG works in PG  (sandeep satpal <sandeep@it.iitb.ac.in>)
List pgsql-hackers
sandeep satpal <sandeep@it.iitb.ac.in> writes:
> Whenever a function get called it receive one parameter 
> as
> PG_FUNCTION_ARG ( as in nbtcompare.c )
> I am not getting how it is interpreted and how it is used ??

It's a pointer to a struct containing the actual arguments.
You might find it helpful to read src/backend/utils/fmgr/README
which is old but still accurate.
        regards, tom lane


pgsql-hackers by date:

Previous
From: sandeep satpal
Date:
Subject: How PG_FUNCTION_ARG works in PG
Next
From: "smile khmer"
Date:
Subject: Re: PG function call