diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-23 22:40:47 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-23 22:40:47 +0000 |
| commit | 188c7c8ccf7c107c228ec85b2996388ac490eb49 (patch) | |
| tree | 77479de1caaef76717004eff62714c23f5a8fe24 /src/include/nodes | |
| parent | d086da4bb1fcf8cd0352b5b93d109cb73a783283 (diff) | |
| download | postgresql-188c7c8ccf7c107c228ec85b2996388ac490eb49.tar.gz | |
Add ALTER TABLE ENABLE/DISABLE TRIGGER commands. Change pg_dump to
use these instead of its previous hack of changing pg_class.reltriggers.
Documentation is lacking, will add that later.
Patch by Satoshi Nagayasu, review and some extra work by Tom Lane.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/parsenodes.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 90a282e163..70c6743ac1 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.289 2005/08/01 20:31:15 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.290 2005/08/23 22:40:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -837,15 +837,21 @@ typedef enum AlterTableType AT_ClusterOn, /* CLUSTER ON */ AT_DropCluster, /* SET WITHOUT CLUSTER */ AT_DropOids, /* SET WITHOUT OIDS */ - AT_SetTableSpace /* SET TABLESPACE */ + AT_SetTableSpace, /* SET TABLESPACE */ + AT_EnableTrig, /* ENABLE TRIGGER name */ + AT_DisableTrig, /* DISABLE TRIGGER name */ + AT_EnableTrigAll, /* ENABLE TRIGGER ALL */ + AT_DisableTrigAll, /* DISABLE TRIGGER ALL */ + AT_EnableTrigUser, /* ENABLE TRIGGER USER */ + AT_DisableTrigUser /* DISABLE TRIGGER USER */ } AlterTableType; typedef struct AlterTableCmd /* one subcommand of an ALTER TABLE */ { NodeTag type; AlterTableType subtype; /* Type of table alteration to apply */ - char *name; /* column or constraint name to act on, or - * new owner or tablespace */ + char *name; /* column, constraint, or trigger to act on, + * or new owner or tablespace */ Node *def; /* definition of new column, column type, * index, or constraint */ Node *transform; /* transformation expr for ALTER TYPE */ |
