aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-03-29 03:01:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-03-29 03:01:32 +0000
commit8c85a34a3b945059e1bc03e2f0988b8092a365fd (patch)
treeb785abb23ba5b4a353a4aad3767cde784c19fbe9 /src/backend/commands/trigger.c
parent4f6f5db47484c6550cfe792e80fc2c824154995e (diff)
downloadpostgresql-8c85a34a3b945059e1bc03e2f0988b8092a365fd.tar.gz
postgresql-8c85a34a3b945059e1bc03e2f0988b8092a365fd.zip
Officially decouple FUNC_MAX_ARGS from INDEX_MAX_KEYS, and set the
former to 100 by default. Clean up some of the less necessary dependencies on FUNC_MAX_ARGS; however, the biggie (FunctionCallInfoData) remains.
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r--src/backend/commands/trigger.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index a9e8bc9e7f1..ef00943055f 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.182 2005/03/29 00:16:57 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.183 2005/03/29 03:01:30 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1179,10 +1179,7 @@ ExecCallTriggerFunc(TriggerData *trigdata,
/*
* Call the function, passing no arguments but setting a context.
*/
- MemSet(&fcinfo, 0, sizeof(fcinfo));
-
- fcinfo.flinfo = finfo;
- fcinfo.context = (Node *) trigdata;
+ InitFunctionCallInfoData(fcinfo, finfo, 0, (Node *) trigdata, NULL);
result = FunctionCallInvoke(&fcinfo);