Re: Max input parameter for a function

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Max input parameter for a function
Date: 2003-10-20 12:29:45
Message-ID: m3znfw3xdy.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

After a long battle with technology,sgnerd(at)yahoo(dot)com(dot)sg ("Kumar"), an earthling, wrote:
> While trying to allocate about 36 input parameters, I got an error saying that the max input parameter for a function is only 32.
>
> Is it right? How to overcome this? Because I wanna insert records into a table of 55 columns with a lot of NULL able columns.
>
> I am using Postgres 7.3.4 on RH Linux 7.2.
>
> Note: I can't use 2 functions , one to insert 32 rows into the table
> first and the update the remaining columns with other
> function. Because there are only 27 columns that are not null.

The default compiled in is to limit the number of parameters to 32.
You can recompile it and modify the number of input parameters.

Somehow, the notion of a table with 55 columns strikes me as a
situation where normalization is likely to be BADLY needed...
--
output = reverse("gro.gultn" "@" "enworbbc")
http://www.ntlug.org/~cbbrowne/linux.html
Rules of the Evil Overlord #156. "If I have the hero and his party
trapped, I will not wait until my Superweapon charges to finish them
off if more conventional means are available."
<http://www.eviloverlord.com/>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dmitri Fuerle 2003-10-20 13:00:58 Question regarding triggers
Previous Message Adam Witney 2003-10-20 10:58:00 query or design question