Re: 16 parameter limit - Mailing list pgsql-sql

From Tom Lane
Subject Re: 16 parameter limit
Date
Msg-id 26072.1018030901@sss.pgh.pa.us
Whole thread Raw
In response to Re: 16 parameter limit  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: 16 parameter limit  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
> Personally, as a heavy user of PL/pgSQL procedures, I'm not sure you
>  need to increase the *default* number of parameters.  Postgres just
>  needs to implement a parameter number change as part of a documented
>  command-line compile-time option, i.e. "--with-parameters=32".

I would not object to providing such a configure option; it seems a
reasonable thing to do.  But the real debate here seems to be what
the default should be.  The ACS people would like their code to run
on a "stock" Postgres installation, so they've been lobbying to change
the default, not just to make it fractionally easier to build a
non-default configuration.

> Also, what is the practical maximum number of parameters?

If you tried to make it more than perhaps 500, you'd start to see
index-tuple-too-big failures in the pg_proc indexes.  Realistically,
though, I can't see people calling procedures with hundreds of
positionally-specified parameters --- such code would be unmanageably
error-prone.

I was surprised that people were dissatisfied with 16 (it was 8 not very
long ago...).  Needing more strikes me as a symptom of either bad coding
practices or missing features of other sorts.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: 16 parameter limit
Next
From: d_nardini@btconnect.com
Date:
Subject: intersect performance (PG 7.1.3 vs 7.2)