Обсуждение: how to get argument number

Поиск
Список
Период
Сортировка

how to get argument number

От
"帅猛"
Дата:
  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



Re: how to get argument number

От
Tom Lane
Дата:
"=?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