pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Procedures cannot take more than 16 arguments
3+ messages / 3 participants
[nested] [flat]

* Procedures cannot take more than 16 arguments
@ 2000-06-28 17:43 Andrey <bp@profit.net.ua>
  2000-06-28 17:51 ` Re: Procedures cannot take more than 16 arguments Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Andrey @ 2000-06-28 17:43 UTC (permalink / raw)
  To: pgsql-sql

Good day.
Does anyone know the way of sending more than 16 parameters to function?

Best regards.
Andrey

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Procedures cannot take more than 16 arguments
  2000-06-28 17:43 Procedures cannot take more than 16 arguments Andrey <bp@profit.net.ua>
@ 2000-06-28 17:51 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2000-06-28 18:12   ` Re: Procedures cannot take more than 16 arguments Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2000-06-28 17:51 UTC (permalink / raw)
  To: Andrey <bp@profit.net.ua>; +Cc: pgsql-sql

[ Charset KOI8-R unsupported, converting... ]
> Good day.
> Does anyone know the way of sending more than 16 parameters to function?

In 7.0, I could have sworn I had an #ifdef to go up to 32, but I don't
see it anymore.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Procedures cannot take more than 16 arguments
  2000-06-28 17:43 Procedures cannot take more than 16 arguments Andrey <bp@profit.net.ua>
  2000-06-28 17:51 ` Re: Procedures cannot take more than 16 arguments Bruce Momjian <pgman@candle.pha.pa.us>
@ 2000-06-28 18:12   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2000-06-28 18:12 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Andrey <bp@profit.net.ua>; pgsql-sql

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-06-28 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-28 17:43 Procedures cannot take more than 16 arguments Andrey <bp@profit.net.ua>
2000-06-28 17:51 ` Bruce Momjian <pgman@candle.pha.pa.us>
2000-06-28 18:12   ` Tom Lane <tgl@sss.pgh.pa.us>

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