Re: Max input parameter for a function - Mailing list pgsql-sql

From Christopher Browne
Subject Re: Max input parameter for a function
Date
Msg-id m3znfw3xdy.fsf@wolfe.cbbrowne.com
Whole thread Raw
In response to Max input parameter for a function  ("Kumar" <sgnerd@yahoo.com.sg>)
List pgsql-sql
After a long battle with technology,sgnerd@yahoo.com.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
isonly 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/>


pgsql-sql by date:

Previous
From: Adam Witney
Date:
Subject: query or design question
Next
From: "Kumar"
Date:
Subject: Unable to user pg_restore