Обсуждение: Max input parameter for a function

Поиск
Список
Период
Сортировка

Max input parameter for a function

От
"Kumar"
Дата:
Dear friends,
 
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.
 
Please shed some light.
 
Regards
Kumar

Re: Max input parameter for a function

От
Christopher Browne
Дата:
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/>