Re: Drop Column with Foreign Key Problem
От | Tom Lane |
---|---|
Тема | Re: Drop Column with Foreign Key Problem |
Дата | |
Msg-id | 6919.1088722744@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Drop Column with Foreign Key Problem ("Thomas Chille (spoon)" <t.chille@spoon.de>) |
Список | pgsql-general |
"Thomas Chille (spoon)" <t.chille@spoon.de> writes: > If i dump the DB i can not found the constraint 'participant_employee' anymore but 3 triggers > belonging to this constraint are still in the DB: > CREATE CONSTRAINT TRIGGER participant_employee It looks to me like you created this database by loading a dump from an older (pre-7.3) Postgres? If so, there are not any dependency links from those triggers to the columns involved, and so dropping the columns doesn't cause the triggers to go away. You'll need to drop the triggers by hand. There is a contrib script (contrib/adddepend) that tries to add the missing dependencies in an upgraded database. I've never used it and am not sure how reliable it is, but it probably beats trying to identify the trouble spots by hand. See the 7.3 release notes for more about this issue. regards, tom lane
В списке pgsql-general по дате отправления: