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)
commitfba180c640209f66821c3daaa0070a61bb71fd35
tree837f4247a4db2818cb578d258da2752cceb69a01
parentda4145103bb2fe210b67bf473c6059a1c85d8078
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