Re: 16 parameter limit

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, John Proctor <jproctor(at)prium(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: 16 parameter limit
Date: 2002-04-05 22:29:14
Message-ID: web-1050830@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-sql

Tom,

> 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.

No, not really. It's just people wanting to use PL/pgSQL procedures as
data filters. For example, I have a database with complex
dependancies and validation rules that I started under 7.0.3, when
RULES were not an option for such things and triggers were harder to
write. As a result, I have the interface push new records for, say,
the CLIENTS table through a PL/pgSQL procedure rather than writing to
the table directly. Since the table has 18 columns, I need (18 + 2
for session & user) 20 parameters for this procedure.

As John has discussed, this kind of data structure is relatively common
in both Oracle and Informix shops. As such, Postgres emulating this
ability allows DBAs from those worlds to consider moving to Postgres
and RHDB. While the same kind of business logic can be implemented
through Rules and Triggers, the Postgres structure for these things is
unique and as a result not very portable.

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-04-05 22:55:30 Debugging symbols by default
Previous Message Jon Grov 2002-04-05 22:24:49 Re: Suggestion for optimization

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2002-04-05 22:58:41 Re: PQescapeBytea is not multibyte aware
Previous Message Tom Lane 2002-04-05 22:10:38 Re: PQescapeBytea is not multibyte aware

Browse pgsql-sql by date

  From Date Subject
Next Message d_nardini 2002-04-05 22:39:54 intersect performance (PG 7.1.3 vs 7.2)
Previous Message Tom Lane 2002-04-05 18:21:41 Re: 16 parameter limit