C functions

From: mlw <markw(at)mohawksoft(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: C functions
Date: 2001-07-20 12:49:43
Message-ID: 3B5828E7.63EA0C63@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

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

I am trying to port some mysql stuff to postgres, and mysql has a function
"concat" which will concatenate a number of fields. I have this coded for
Postgres, but I can't get it registered. I used a few "create function"
statements to cover the number of parameters I need, but this is really ugly.

(Also, this will help with "decode()," an oraclesque function I use.)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-07-20 13:40:19 Ability to create tables
Previous Message The Hermit Hacker 2001-07-20 12:09:22 Re: hub.org out of disk space