Re: user defined function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yl Zhou <andrew(dot)ylzhou(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: user defined function
Date: 2006-01-24 15:30:32
Message-ID: 18796.1138116632@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yl Zhou <andrew(dot)ylzhou(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gevik 2006-01-24 15:36:08 Re: user defined function
Previous Message Stephan Szabo 2006-01-24 15:28:21 Re: NOT HAVING clause?