aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/trigger.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-23 22:40:47 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-23 22:40:47 +0000
commit188c7c8ccf7c107c228ec85b2996388ac490eb49 (patch)
tree77479de1caaef76717004eff62714c23f5a8fe24 /src/include/commands/trigger.h
parentd086da4bb1fcf8cd0352b5b93d109cb73a783283 (diff)
downloadpostgresql-188c7c8ccf7c107c228ec85b2996388ac490eb49.tar.gz
postgresql-188c7c8ccf7c107c228ec85b2996388ac490eb49.zip
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/commands/trigger.h')
-rw-r--r--src/include/commands/trigger.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h
index f6c1f88480b..25c0019518c 100644
--- a/src/include/commands/trigger.h
+++ b/src/include/commands/trigger.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.54 2005/05/30 07:20:58 neilc Exp $
+ * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.55 2005/08/23 22:40:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -113,6 +113,9 @@ extern void RemoveTriggerById(Oid trigOid);
extern void renametrig(Oid relid, const char *oldname, const char *newname);
+extern void EnableDisableTrigger(Relation rel, const char *tgname,
+ bool enable, bool skip_system);
+
extern void RelationBuildTriggers(Relation relation);
extern TriggerDesc *CopyTriggerDesc(TriggerDesc *trigdesc);