Skip to content

Commit 0b14b0c

Browse files
committed
Use fmgr_array_args() to avoid dependency on FUNC_MAX_ARGS.
1 parent 72ed6ff commit 0b14b0c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/backend/tcop/fastpath.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.35 2000/01/11 03:33:14 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.36 2000/01/12 05:28:47 tgl Exp $
1111
*
1212
* NOTES
1313
* This cruft is the server side of PQfn.
@@ -280,6 +280,7 @@ HandleFunctionRequest()
280280
int tmp;
281281
char *arg[FUNC_MAX_ARGS];
282282
char *retval;
283+
bool isNull;
283284
int i;
284285
uint32 palloced;
285286
char *p;
@@ -361,12 +362,7 @@ HandleFunctionRequest()
361362
}
362363

363364
#ifndef NO_FASTPATH
364-
retval = fmgr(fid,
365-
arg[0], arg[1], arg[2], arg[3],
366-
arg[4], arg[5], arg[6], arg[7],
367-
arg[8], arg[9], arg[10], arg[11],
368-
arg[12], arg[13], arg[14], arg[15]);
369-
365+
retval = fmgr_array_args(fid, nargs, arg, &isNull);
370366
#else
371367
retval = NULL;
372368
#endif /* NO_FASTPATH */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy