Re: FOREIGN KEY: difference between NOT DEFERRABLE and

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: FOREIGN KEY: difference between NOT DEFERRABLE and
Дата
Msg-id Pine.BSF.4.21.0109041047001.82280-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на FOREIGN KEY: difference between NOT DEFERRABLE and INITIALLY IMMEDIATE  (Gabriel Fernandez <gabi@unica.edu>)
Список pgsql-general
On Tue, 4 Sep 2001, Gabriel Fernandez wrote:

> Hi,
>
> What's the difference between NOT DEFERRABLE and INITIALLY IMMEDIATE for
> a FOREIGN KEY specification ?
>
> It seems they are both defining the same: the moment the constraint will
> be checked: the instant the statement is processed or the end of
> transaction.

Well, at start.  With initially immediate you can use SET CONSTRAINTS to
change it on the fly back and forth from deferrable to not.  NOT
DEFERRABLE means you cannot do so.



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

Предыдущее
От: Tony Grant
Дата:
Сообщение: Re: [WAY OT] Re: PL/java?
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: nested SQL with SPI