Re: Oracle Decode Function

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Marc Lavergne" <mlavergne-pub(at)richlava(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Oracle Decode Function
Date: 2002-07-26 02:30:43
Message-ID: GNELIHDDFBOCMGBFGEFOIEFMCDAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> If you're asking about whether a custom function can have vararg
> parameters, the answer appears to depend on the CREATE FUNCTION syntax.
> I've never used them personally, but the PG_FUNCTION_ARGS and
> PG_GETARG_xxx(#) macros (/src/includes/fmgr.h) available for compiled
> functions would appear to support variable length argument lists. The
> problem is that I couldn't pin down a CREATE FUNCTION that provided the
> same vararg functionality. Hopefully somebody can answer this
> conclusively.

contrib/fulltextindex/fti.c uses variable numbers of arguments...

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-07-26 02:38:24 Re: Which casts should be implicit
Previous Message redmonde 2002-07-26 01:40:04 solaris 9?