From: Tom Lane <tgl@sss.pgh.pa.us>
To: MindTerm <mindterm@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to create function with unspecified number of input parameters ?
Date: Sat, 24 Nov 2001 23:49:38 -0500
Message-ID: <2762.1006663778@sss.pgh.pa.us> (raw)
In-Reply-To: <20011125042521.54480.qmail@web20202.mail.yahoo.com>
References: <20011125042521.54480.qmail@web20202.mail.yahoo.com>
MindTerm <mindterm@yahoo.com> writes:
> I am writing to ask how to create function ( CREATE
> FUNCTION ) with unspecified number of input parameters
CREATE FUNCTION doesn't presently support that.
If the underlying function is written in C, you can fake it by
issuing multiple CREATE FUNCTION commands with different numbers
of declared parameters, all of which point to the same C function.
Then the C code would have to look at fcinfo->nargs to see how it
had been called.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mindterm@yahoo.com
Subject: Re: How to create function with unspecified number of input parameters ?
In-Reply-To: <2762.1006663778@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox