]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add tgconstrrelid to stored Trigger structures, make RI trigger functions
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2002 22:36:13 +0000 (22:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2002 22:36:13 +0000 (22:36 +0000)
commit789ddcb5fe0584fd7524db97909ff43cb2ac37f6
treed94e23b6e5606aee2bbe5d5006e6107863daa160
parent6a25cd6b26cc5012828119f9c01c93b9d4d46ad7
Add tgconstrrelid to stored Trigger structures, make RI trigger functions
depend on this rather than the trigger argument strings to locate the
other relation to test.  This makes RI triggers function properly in
the presence of schemas and temp tables.  Along the way, fix bogus lack
of locking in RI triggers, handle quoting of names fully correctly,
compute required sizes of query buffers with some semblance of accuracy.
doc/src/sgml/trigger.sgml
src/backend/commands/command.c
src/backend/commands/trigger.c
src/backend/utils/adt/ri_triggers.c
src/include/commands/trigger.h
src/include/utils/rel.h