OSDN Git Service

Minor improvements to code for converting legacy CREATE CONSTRAINT TRIGGER
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2007 21:25:55 +0000 (21:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2007 21:25:55 +0000 (21:25 +0000)
commit5e0377ae7e8e1882ddfdc1a1a66984bab9889f54
tree435933a131119aeb3858298f2b529b76b6222ff5
parent729d2b08c018d02d61046211defb2c2f02d12b79
Minor improvements to code for converting legacy CREATE CONSTRAINT TRIGGER
commands into proper foreign-key constraints.  Believe the constraint name
given in the trigger arguments in preference to the trigger name --- to judge
from Olivier Prenant's example, pg_dump must at some time have used the
autogenerated trigger name there, though AFAICT no current release branch tip
does.  Improve the emitted NOTICEs to provide more detail (PK table's name and
column names).  Handle the case where pg_dump forgot to provide the FROM table
(a bug that never did get fixed in 7.0.x apparently).  This commit doesn't
do anything about the question of what to do with incomplete trigger groups.
src/backend/commands/trigger.c