| От | Joe Conway |
|---|---|
| Тема | Re: PL/C functions |
| Дата | |
| Msg-id | 3F395B7B.5010207@joeconway.com обсуждение исходный текст |
| Ответ на | Re: PL/C functions (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: PL/C functions
|
| Список | pgsql-general |
Tom Lane wrote: > 1. There is no provision for a single pg_proc entry to have a variable > number of arguments. > > 2. You can make multiple pg_proc entries referencing the same C > function. The C function can find out how many arguments it was > actually passed (use PG_NARGS()). > > So you could make several different pg_proc entries and get the desired > effect, at some tedium. > > Joe Conway has posted a few examples using this approach, IIRC. > See contrib/dblink in 7.4beta -- there are several functions using this method, e.g. dblink_connect(). Joe
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера