how to get argument number

Started by 帅猛over 23 years ago2 messagesgeneral
Jump to latest
#1帅猛
shuaimeng@db.pku.edu.cn

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!

        
        shuaimeng@db.pku.edu.cn
          2002-12-01

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: 帅猛 (#1)
Re: how to get argument number

"=?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