Re: Drop Foreign Key

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Drop Foreign Key
Дата
Msg-id 20020131115953.F16538-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Drop Foreign Key  ("Gregory Wood" <gregw@com-stock.com>)
Список pgsql-general
On Thu, 31 Jan 2002, Gregory Wood wrote:

> I'd like to drop a foreign key constraint on a table. I know there are a
> number of triggers created by a FK, but how many, how do I find them to
> delete them, and what other gotchas might I find when removing the
> constaint(s)?
>
> It looks like there is an INSERT/UPDATE trigger on the main table, and two
> more on the table it's keyed into (one UPDATE, one DELETE)? If this is true,
> can I just delete those three triggers and be done with it?

You should probably use DROP TRIGGER on them, and you'll need to double
quote the trigger name.


В списке pgsql-general по дате отправления:

Предыдущее
От: Cindy
Дата:
Сообщение: Re: going crazy with serial type
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: unique & update