Re: Function with Variable number of parameters

From: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
To: edwin(dot)ramirez(at)mssm(dot)edu, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Function with Variable number of parameters
Date: 2005-11-08 13:39:01
Message-ID: BAY20-F23CCA3F10A81EA0622C84CF9640@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


>
>Are variable number of parameters supported in the new version of Postgres?
>

Hello

no, there isn't way for it without modification of parser. Or you can write
somethink like

create function a(init, int, int, int) ..
create function a(int, int, int) returns .. return a($1,$2,$3, null)

Regards
Pavel Stehule

_________________________________________________________________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-11-08 13:46:24 Re: Enums again
Previous Message Jaime Casanova 2005-11-08 13:38:44 Re: plperl error when making 8.2dev CVS