Re: how to get argument number - Mailing list pgsql-general

From Tom Lane
Subject Re: how to get argument number
Date
Msg-id 355.1038673431@sss.pgh.pa.us
Whole thread Raw
In response to how to get argument number  ("帅猛" <shuaimeng@db.pku.edu.cn>)
List pgsql-general
"=?GB2312?Q?=CB=A7=C3=CD?=" <shuaimeng@db.pku.edu.cn> writes:
>   I create a funtion with C ,i want to know how many argument number i have got;
> which macro i can use?,PG_GETARGV_INT16 or other macro ? thanks!

PG_NARGS()

Of course, this will only be useful if you make multiple pg_proc entries
pointing at the same C function.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Memory leak with palloc
Next
From: Tom Lane
Date:
Subject: Re: how to make an 'UNLOCK'?