Re: referential integrity constraints not checked inside

Поиск
Список
Период
Сортировка
От James M Moe
Тема Re: referential integrity constraints not checked inside
Дата
Msg-id 40A393AD.6080506@sohnen-moe.com
обсуждение исходный текст
Ответ на referential integrity constraints not checked inside PL/pgSQL functions?  (Christian Rank <christian.rank@rz.uni-passau.de>)
Список pgsql-general
Christian Rank wrote:
>
>     create table a (n integer);
>     create table b (n integer);
>     alter table a add primary key (n);
>     alter table b add foreign key (n) references a(n);
>
Have you considered using "on delete cascade" in table b?

--
jimoe at sohnen-moe dot com

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

Предыдущее
От: Christian Rank
Дата:
Сообщение: Re: referential integrity constraints not checked inside
Следующее
От: "Jeffrey W. Baker"
Дата:
Сообщение: Re: pg_xlog becomes extremely large during CREATE INDEX