Re: Adding "on delete cascade" after table creation ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding "on delete cascade" after table creation ?
Дата
Msg-id 4063.1033051578@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Adding "on delete cascade" after table creation ?  ("Peter Alberer" <h9351252@obelix.wu-wien.ac.at>)
Список pgsql-general
"Peter Alberer" <h9351252@obelix.wu-wien.ac.at> writes:
> From looking at the techdocs document i got the impression that I simply
> need to change the value of "tgfoid" in pg_trigger from "1654"
> (RI_FKey_noaction_del) to "1646" (RI_FKey_cascade_del). Is this correct?

Probably, but also keep an eye on the tgtype and tgargs.  I'd recommend
creating two dummy tables with the right kind of foreign-key constraint,
and then looking at how their triggers are configured.

            regards, tom lane

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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: rotatelog / logrotate with PostgreSQL
Следующее
От: Ericson Smith
Дата:
Сообщение: Unixtime (epoch) into timestamp?