From f76390d75a6bb7ba9dabcb3321d17ffa2a867ca6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 2 Feb 2005 22:40:19 +0000 Subject: Improve performance of fmgr.c calling routines for cases with more than two arguments. Per suggestions from A. Ogawa. --- src/backend/utils/sort/tuplesort.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/sort/tuplesort.c') diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c index 36897b05ea8..19d44c43d3b 100644 --- a/src/backend/utils/sort/tuplesort.c +++ b/src/backend/utils/sort/tuplesort.c @@ -78,7 +78,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.45 2004/12/31 22:02:53 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.45.4.1 2005/02/02 22:40:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1804,13 +1804,12 @@ myFunctionCall2(FmgrInfo *flinfo, Datum arg1, Datum arg2) FunctionCallInfoData fcinfo; Datum result; - /* MemSet(&fcinfo, 0, sizeof(fcinfo)); */ + fcinfo.flinfo = flinfo; fcinfo.context = NULL; fcinfo.resultinfo = NULL; fcinfo.isnull = false; - - fcinfo.flinfo = flinfo; fcinfo.nargs = 2; + fcinfo.arg[0] = arg1; fcinfo.arg[1] = arg2; fcinfo.argnull[0] = false; -- cgit v1.2.3