Re: C functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mlw <markw(at)mohawksoft(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C functions
Date: 2001-07-20 16:02:21
Message-ID: 3771.995644941@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

mlw <markw(at)mohawksoft(dot)com> writes:
> Does anyone know if it is possible to define a Postgres C function as
> taking a variable number of parameters? The fmgr code will pass it,
> but I don't see any way to use "create function" to register it.

No, it's not. There is some (purely speculative) support for the idea
in the fmgr code, but none anywhere else, as yet.

> Does one have to issue a create function for each additional parameter?

Yup, you could make multiple pg_proc entries all pointing at the same
C function. Kinda grotty, but...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-07-20 16:03:01 Re: RPM source files should be in CVS (was Re: psql -l)
Previous Message Tom Lane 2001-07-20 15:53:31 Re: problem with creating/dropping tables and plpgsql ?