mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
CREATE/DROP TRIGGER
This commit is contained in:
parent
d65584d297
commit
502f6f3889
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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/vacuum.h"
|
||||||
#include "commands/recipe.h"
|
#include "commands/recipe.h"
|
||||||
#include "commands/explain.h"
|
#include "commands/explain.h"
|
||||||
|
#include "commands/trigger.h"
|
||||||
|
|
||||||
#include "nodes/parsenodes.h"
|
#include "nodes/parsenodes.h"
|
||||||
#include "../backend/parser/parse.h"
|
#include "../backend/parser/parse.h"
|
||||||
@ -669,6 +670,23 @@ ProcessUtility(Node *parsetree,
|
|||||||
}
|
}
|
||||||
break;
|
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
|
* default
|
||||||
* ********************************
|
* ********************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user