Re: user defined function

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: user defined function
Дата
Msg-id 43D64A60.4080703@archonet.com
обсуждение исходный текст
Ответ на Re: user defined function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: user defined function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Yl Zhou <andrew.ylzhou@gmail.com> writes:
>> I want to implement a UDF that can accept a parameter which is a tuple of
>> any table, and returns the number of NULL attributes in this tuple.
>> Different tables may have different schemas. How can I implement this
>> function?  Thanks.
>
> You could do that in C, but none of the available PLs support it.

How would you define the signature for the function? One parameter of
type anyelement?

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Peter Wilson
Дата:
Сообщение: Re: Does this look ethical to you?
Следующее
От: Rick Gigger
Дата:
Сообщение: