Re: more than 32 parameters to a function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ottavio Campana <ottavio(at)campana(dot)vi(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: more than 32 parameters to a function?
Date: 2006-10-26 18:29:59
Message-ID: 23291.1161887399@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> writes:
> I'm writing some stored procedures in pl/pgsql for a database using
> postgresql 7.4.7.
> I need to write a complex function with 65 arguments, but when I try to
> run it I get an error complaining that arguments can be up to 32.

Update to 8.1, which allows 100 by default. Or modify FUNC_MAX_ARGS and
recompile --- but be aware that in 7.4.x that change requires an initdb.

Or, as suggested elsewhere, rethink that function's API. A list of 65
arguments seems terribly error-prone to me...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2006-10-26 18:34:30 Re: [GENERAL] Call for Donations
Previous Message David Fetter 2006-10-26 18:27:43 Re: more than 32 parameters to a function?