Re: ON DELETE Behavior after the fact

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: ON DELETE Behavior after the fact
Дата
Msg-id Pine.BSF.4.21.0104271039530.26669-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на ON DELETE Behavior after the fact  (John Pagakis <John.Pagakis@DevelopOnline.com>)
Список pgsql-general
On Fri, 27 Apr 2001, John Pagakis wrote:

> I have a database in production that requires some ON DELETE behavior.  Is
> there a way to use ALTER TABLE to define ON DELETE behavior for the foreign
> keys, or will I have to write triggers at this point?

The easiest thing is probably to drop the triggers for the foreign key
constraint you want to change, and re-add the constraint using ALTER
TABLE specifying the on delete behavior.



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

Предыдущее
От: Pierce Tyler
Дата:
Сообщение: Re: Need for newbie friendly docs (Was newbie struggling...)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL and mySQL database size question