Re: C functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C functions
Дата
Msg-id 3771.995644941@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C functions  (mlw <markw@mohawksoft.com>)
Список pgsql-hackers
mlw <markw@mohawksoft.com> writes:
> Does anyone know if it is possible to define a Postgres C function as
> taking a variable number of parameters? The fmgr code will pass it,
> but I don't see any way to use "create function" to register it.

No, it's not.  There is some (purely speculative) support for the idea
in the fmgr code, but none anywhere else, as yet.

> Does one have to issue a create function for each additional parameter?

Yup, you could make multiple pg_proc entries all pointing at the same
C function.  Kinda grotty, but...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Steve Howe"
Дата:
Сообщение: Re: Large queries - again...
Следующее
От: "Steve Howe"
Дата:
Сообщение: Re: Large queries - again...