Re: how to get argument number

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 帅猛 <shuaimeng(at)db(dot)pku(dot)edu(dot)cn>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to get argument number
Date: 2002-11-30 16:23:51
Message-ID: 355.1038673431@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"=?GB2312?Q?=CB=A7=C3=CD?=" <shuaimeng(at)db(dot)pku(dot)edu(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-11-30 16:44:57 Re: how to make an 'UNLOCK'?
Previous Message Tom Lane 2002-11-30 16:20:57 Re: Memory leak with palloc