CREATE/DROP TRIGGER

This commit is contained in:
Vadim B. Mikheev 1997-08-31 11:41:55 +00:00
parent d65584d297
commit 502f6f3889

View File

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.20 1997/08/18 20:53:35 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.21 1997/08/31 11:41:55 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -34,6 +34,7 @@
#include "commands/vacuum.h"
#include "commands/recipe.h"
#include "commands/explain.h"
#include "commands/trigger.h"
#include "nodes/parsenodes.h"
#include "../backend/parser/parse.h"
@ -668,6 +669,23 @@ ProcessUtility(Node *parsetree,
commandTag = "RESET VARIABLE";
}
break;
/* ********************************
* TRIGGER statements
*********************************/
case T_CreateTrigStmt:
commandTag = "CREATE";
CHECK_IF_ABORTED();
CreateTrigger((CreateTrigStmt *)parsetree);
break;
case T_DropTrigStmt:
commandTag = "DROP";
CHECK_IF_ABORTED();
DropTrigger((DropTrigStmt *)parsetree);
break;
/* ********************************
* default