Re: How PG_FUNCTION_ARG works in PG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sandeep satpal <sandeep(at)it(dot)iitb(dot)ac(dot)in>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How PG_FUNCTION_ARG works in PG
Date: 2005-10-06 15:02:13
Message-ID: 18496.1128610933@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

sandeep satpal <sandeep(at)it(dot)iitb(dot)ac(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Esha Palta 2005-10-06 15:44:02 execution of nested loop joins
Previous Message smile khmer 2005-10-06 15:01:55 Re: PG function call