Re: user defined function - Mailing list pgsql-general

From Richard Huxton
Subject Re: user defined function
Date
Msg-id 43D64A60.4080703@archonet.com
Whole thread Raw
In response to Re: user defined function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: user defined function  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Peter Wilson
Date:
Subject: Re: Does this look ethical to you?
Next
From: Rick Gigger
Date:
Subject: