aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2000-02-04 18:49:34 +0000
committerJan Wieck <JanWieck@Yahoo.com>2000-02-04 18:49:34 +0000
commitddd596d38639796983eb08a90aa1349db6f600da (patch)
tree8dbcfecc0d02e8d79d7297ccc384949656a388a5 /src/backend/commands/trigger.c
parent74d53d7838872807099479933553f1dedcd33212 (diff)
downloadpostgresql-ddd596d38639796983eb08a90aa1349db6f600da.tar.gz
postgresql-ddd596d38639796983eb08a90aa1349db6f600da.zip
Added ALTER TABLE ... ADD CONSTRAINT (provided by Stephan Szabo).
Added constraint dumping capability to pg_dump (also from Stephan) Fixed DROP TABLE -> RelationBuildTriggers: 2 record(s) not found for rel error. Fixed little error in gram.y I made the last days. Jan
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r--src/backend/commands/trigger.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index f3c919a1ed9..04c20e1827d 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.56 2000/01/31 04:35:49 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.57 2000/02/04 18:49:31 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -399,6 +399,15 @@ RelationRemoveTriggers(Relation rel)
DropTrigger(&stmt);
+ /* ----------
+ * Need to do a command counter increment here to show up
+ * new pg_class.reltriggers in the next loop invocation already
+ * (there are multiple referential integrity action
+ * triggers for the same FK table defined on the PK table).
+ * ----------
+ */
+ CommandCounterIncrement();
+
pfree(stmt.relname);
pfree(stmt.trigname);
}