diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-10-06 16:38:28 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-10-06 16:38:28 +0000 |
commit | fec58f6c3f17ba6acbba65a73ca736578041677f (patch) | |
tree | 7c15e8bbc8a28aeb9e15b30e72068a7b636b945f /src/include/commands/trigger.h | |
parent | a0ab31dcc646a1bc25360999d388fd2a8408dc30 (diff) |
During ALTER TABLE ADD FOREIGN KEY, try to check the existing rows using
a single LEFT JOIN query instead of firing the check trigger for each
row individually. Stephan Szabo, with some kibitzing from Tom Lane and
Jan Wieck.
Diffstat (limited to 'src/include/commands/trigger.h')
-rw-r--r-- | src/include/commands/trigger.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index d3aa9e385af..fe8f6af61d9 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: trigger.h,v 1.43 2003/08/04 02:40:13 momjian Exp $ + * $Id: trigger.h,v 1.44 2003/10/06 16:38:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -197,5 +197,8 @@ extern void DeferredTriggerSetState(ConstraintsSetStmt *stmt); * in utils/adt/ri_triggers.c */ extern bool RI_FKey_keyequal_upd(TriggerData *trigdata); +extern bool RI_Initial_Check(FkConstraint *fkconstraint, + Relation rel, + Relation pkrel); #endif /* TRIGGER_H */ |