From bp@profit.net.ua Wed Jun 28 17:44:25 2000 Received: from profit.net.ua (profit.net.ua [62.244.36.129]) by hub.org (8.10.1/8.10.1) with ESMTP id e5SHiO155795 for ; Wed, 28 Jun 2000 13:44:25 -0400 (EDT) Received: from x206 (dup-239.profit.net.ua [62.244.36.239]) by profit.net.ua (8.9.0/8.9.0) with SMTP id UAA07562 for ; Wed, 28 Jun 2000 20:44:17 +0300 (EEST) Message-ID: <002101bfe128$5206ebf0$0101010a@x206> From: "Andrey" To: Subject: Procedures cannot take more than 16 arguments Date: Wed, 28 Jun 2000 20:43:05 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001E_01BFE141.75FAD580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2417.2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200006/262 This is a multi-part message in MIME format. ------=_NextPart_000_001E_01BFE141.75FAD580 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Good day. Does anyone know the way of sending more than 16 parameters to function? Best regards. Andrey ------=_NextPart_000_001E_01BFE141.75FAD580 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Good day.
Does anyone know the way of sending more than 16=20 parameters to function?
 
Best regards.
Andrey
------=_NextPart_000_001E_01BFE141.75FAD580-- From pgman@candle.pha.pa.us Wed Jun 28 17:52:18 2000 Received: from candle.pha.pa.us (pgman@nav-43.dsl.navpoint.com [162.33.245.46]) by hub.org (8.10.1/8.10.1) with ESMTP id e5SHqI175577 for ; Wed, 28 Jun 2000 13:52:18 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id NAA20819; Wed, 28 Jun 2000 13:51:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200006281751.NAA20819@candle.pha.pa.us> Subject: Re: Procedures cannot take more than 16 arguments In-Reply-To: <002101bfe128$5206ebf0$0101010a@x206> "from Andrey at Jun 28, 2000 08:43:05 pm" To: Andrey Date: Wed, 28 Jun 2000 13:51:01 -0400 (EDT) CC: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200006/263 [ 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 From tgl@sss.pgh.pa.us Wed Jun 28 18:12:23 2000 Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.10.1/8.10.1) with ESMTP id e5SICN121410 for ; Wed, 28 Jun 2000 14:12:23 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id OAA16715; Wed, 28 Jun 2000 14:12:04 -0400 (EDT) To: Bruce Momjian cc: Andrey , pgsql-sql@postgresql.org Subject: Re: Procedures cannot take more than 16 arguments In-reply-to: <200006281751.NAA20819@candle.pha.pa.us> References: <200006281751.NAA20819@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 28 Jun 2000 13:51:01 -0400" Date: Wed, 28 Jun 2000 14:12:04 -0400 Message-ID: <16712.962215924@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200006/264 >> 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 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