making functions take arrays

Поиск
Список
Период
Сортировка
От Kyle
Тема making functions take arrays
Дата
Msg-id 14984.8803.951462.316547@ip146.usw5.rb1.bel.nwlink.com
обсуждение исходный текст
Ответы Re: making functions take arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Is it possible to make a compiled C function take an array as an
argument?  Right now I've got a function that takes 32 arguments, all
declared as separate variables (int arg1, int arg2, ...) and it would
be a lot more natural for the function to be called with an array (int
*array, int num_elements).  Is this possible?

Also, how do I return an SQL NULL from a function?

Thanks,
Kyle



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

Предыдущее
От: Chris Jones
Дата:
Сообщение: Re: Failover (was Re: PostgreSQL over NFS?)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: making functions take arrays