Re: user defined function - Mailing list pgsql-general

From Tom Lane
Subject Re: user defined function
Date
Msg-id 18796.1138116632@sss.pgh.pa.us
Whole thread Raw
In response to user defined function  (Yl Zhou <andrew.ylzhou@gmail.com>)
Responses Re: user defined function  ("Gevik" <gevik@xs4all.nl>)
Re: user defined function  (Richard Huxton <dev@archonet.com>)
Re: user defined function  (Thomas Hallgren <thomas@tada.se>)
List pgsql-general
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.

            regards, tom lane

pgsql-general by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Does this look ethical to you?
Next
From: Jimmy Rowe
Date:
Subject: