Re: RI triggers and schemas
От | Christopher Kings-Lynne |
---|---|
Тема | Re: RI triggers and schemas |
Дата | |
Msg-id | 20020401120549.F88727-100000@houston.familyhealth.com.au обсуждение исходный текст |
Ответ на | Re: RI triggers and schemas (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: RI triggers and schemas
Re: RI triggers and schemas |
Список | pgsql-hackers |
> I've just realized that if we change the RI trigger arguments this way, > we will have a really serious problem with accepting pg_dump scripts > from prior versions. The scripts' representation of foreign key > constraints will contain commands like > > CREATE CONSTRAINT TRIGGER "<unnamed>" AFTER UPDATE ON "bar" FROM "baz" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROWEXECUTE PROCEDURE "RI_FKey_noaction_upd" ('<unnamed>', 'baz', 'bar', 'UNSPECIFIED', 'f1', 'f1'); > > which will absolutely not work at all if the 7.3 triggers are expecting > to find OIDs in those arguments. Why can't we just hack up the CREATE CONSTRAINT TRIGGER code to look up the OIDs, etc. for the arguments and convert them internally to an ALTER TABLE/ADD CONSTRAINT or whatever... Chris
В списке pgsql-hackers по дате отправления: