Обсуждение: Why their is a limit in Postgresql (psql) Parameters..?

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

Why their is a limit in Postgresql (psql) Parameters..?

От
"vijaykumar M"
Дата:

Hi All,

     I'm using Postgresql v7.3.3. I have a small question ...


     Why is that there is a maximum limit of 32 input parameters to the
Postgresql function?
      Whereas stored procedures in Oracle and SQL Server
take more than 32 input arguments. So this puts extra burden on the
middleware developer to handle this stiuation at the time of migrating
existing databases in SQL Server or Oracle to Postgresql.

Any Info/Suggestions will be highly appreciated.

 

 





 



Are you Unmarried? Register in India's No 1 Matrimony

Re: Why their is a limit in Postgresql (psql) Parameters..?

От
Richard Huxton
Дата:
On Monday 21 July 2003 11:29, vijaykumar M wrote:
> Hi All,
>
>     I'm using Postgresql v7.3.3. I have a small question ...
>
>     Why is that there is a maximum limit of 32 input parameters to the
> Postgresql function?
>       Whereas stored procedures in Oracle and SQL Server
> take more than 32 input arguments. So this puts extra burden on the
> middleware developer to handle this stiuation at the time of migrating
> existing databases in SQL Server or Oracle to Postgresql.

It used to be 16 and was increased to 32 fairly recently (hmm - 7.3.0 
according to the release notes). People used to tweak and recompile the 
source to increase from 16, so I suppose you could still do the same. Have a 
look in the mailing list archives, I seem to remember messages on this in the 
past.

The reason why it's not bigger is that there hasn't been enough people saying 
"I need more parameters".

--  Richard Huxton Archonet Ltd


Re: Why their is a limit in Postgresql (psql) Parameters..?

От
Rod Taylor
Дата:
> The reason why it's not bigger is that there hasn't been enough people saying
> "I need more parameters".

That and a general speed penalty to all users of all functions.

Make (whatever) the limitation is affect only those using a large number
of parameters and you will find the limit set to a fairly high number.