Re: Foreign Key Option

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Foreign Key Option
Дата
Msg-id 20020506095908.R43441-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Foreign Key Option  (Erwin Ambrosch <ambre@ebutec.com>)
Список pgsql-general
On Mon, 6 May 2002, Erwin Ambrosch wrote:

> can I change the foreign key optins (e.g. ON UPDATE, ON DELETE) after the
> table has been created. And if yea, does the change also affect already
> inserted rows.

You could drop the triggers and then recreate the constraint
with alter table.  That won't affect past changes (for example rows that
were deleted by a on delete cascade wouldn't suddenly become visible with
nulls if it were changed to on delete set null).


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

Предыдущее
От: "Johnson, Shaunn"
Дата:
Сообщение: pg_restore question
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: IF- statements in a rule's 'DO INSTEAD SELECT ...'-