Re: user defined function

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

Tom Lane wrote:
> 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.

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

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Wilson 2006-01-24 15:42:10 Re: Does this look ethical to you?
Previous Message Devrim GUNDUZ 2006-01-24 15:39:31 Re: Does this look ethical to you?