Content-Length: 281299 | pFad | http://github.com/postgrespro/postgres/commit/b8ef7e7f82b7c81dd05e6bc167fe4471e5073be5

97 Completed FOREIGN KEY syntax. · postgrespro/postgres@b8ef7e7 · GitHub
Skip to content

Commit b8ef7e7

Browse files
Jan WieckJan Wieck
authored andcommitted
Completed FOREIGN KEY syntax.
Added functionality for automatic trigger creation during CREATE TABLE. Added ON DELETE RESTRICT and some others. Jan
1 parent 1d8ce77 commit b8ef7e7

File tree

6 files changed

+1178
-114
lines changed

6 files changed

+1178
-114
lines changed

src/backend/commands/trigger.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ RelationRemoveTriggers(Relation rel)
394394
stmt.relname = pstrdup(RelationGetRelationName(refrel));
395395
stmt.trigname = nameout(&pg_trigger->tgname);
396396

397+
elog(NOTICE, "DROP TABLE implicitly drops referential integrity trigger from table \"%s\"", stmt.relname);
398+
397399
DropTrigger(&stmt);
398400

399401
pfree(stmt.relname);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b8ef7e7f82b7c81dd05e6bc167fe4471e5073be5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy