pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Andrey <bp@profit.net.ua>
Cc: pgsql-sql@postgresql.org
Subject: Re: Procedures cannot take more than 16 arguments
Date: Wed, 28 Jun 2000 14:12:04 -0400
Message-ID: <16712.962215924@sss.pgh.pa.us> (raw)
In-Reply-To: <200006281751.NAA20819@candle.pha.pa.us>
References: <200006281751.NAA20819@candle.pha.pa.us>

>> Does anyone know the way of sending more than 16 parameters to function?

Change the relevant parameters in config.h (there are two), rebuild,
reinstall, initdb.

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> In 7.0, I could have sworn I had an #ifdef to go up to 32, but I don't
> see it anymore.

If you're talking about that switch statement in fmgr.c, I don't think
it needs to support more than 16 in the new fmgr --- there certainly is
no reason to tie it directly to FUNC_MAX_ARGS.  The switch only applies
to calling old-style builtin or dynamically-loaded old-style C functions.
There aren't any old-style builtin functions left with more than 3 args,
and if there's someone out there with a C function that takes more
than 16 he'd be well advised to convert it to newstyle anyway.
(He could only have written such a function since 7.0 release ...
the historical limit was just 8, so I think the oldstyle cases beyond 8
are likely to be dead code anyhow ... not much point in cluttering the
backend with more cases.)

I think I need to change the config.h comment that goes with
MAX_FUNC_ARGS.

			regards, tom lane



view thread (3+ messages)

Message-ID: <16712.962215924@sss.pgh.pa.us>
Permalink:  ../16712.962215924@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16712.962215924@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, bp@profit.net.ua
  Subject: Re: Procedures cannot take more than 16 arguments
  In-Reply-To: <16712.962215924@sss.pgh.pa.us>
  References: <200006281751.NAA20819@candle.pha.pa.us> <16712.962215924@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox