| From: | Thomas Hallgren <thomas(at)tada(dot)se> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-general(at)postgresql(dot)org, Yl Zhou <andrew(dot)ylzhou(at)gmail(dot)com> |
| Subject: | Re: user defined function |
| Date: | 2006-01-24 18:45:00 |
| Message-ID: | 43D675AC.60007@tada.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
For what it's worth, the next release of PL/Java has support for both RECORD parameters and
SETOF RECORD return types. The adventurous can try out the current CVS HEAD.
Regards,
Thomas Hallgren
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.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Yl Zhou | 2006-01-24 19:50:51 | Re: user defined function |
| Previous Message | MargaretGillon | 2006-01-24 17:52:25 | Constraint that compares and limits field values |