Re: Function with Variable number of parameters - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Function with Variable number of parameters
Date
Msg-id BAY20-F23CCA3F10A81EA0622C84CF9640@phx.gbl
Whole thread Raw
In response to Function with Variable number of parameters  (Edwin Ramirez <edwin.ramirez@mssm.edu>)
List 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/



pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: plperl error when making 8.2dev CVS
Next
From: Andrew Dunstan
Date:
Subject: Re: Enums again