mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
CREATE/DROP TRIGGER
This commit is contained in:
parent
d65584d297
commit
502f6f3889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user