| От | Bill Todd |
|---|---|
| Тема | Re: The difference between RESTRICT and NO ACTION |
| Дата | |
| Msg-id | 497E6C40.90103@dbginc.com обсуждение исходный текст |
| Ответ на | The difference between RESTRICT and NO ACTION (Bill Todd <pg@dbginc.com>) |
| Список | pgsql-general |
Bill Todd wrote: > In discussing foreign key constraints the manual makes the following > statement about the difference between RESTRICT and NO ACTION. > > "(The essential difference between these two choices is that |NO > ACTION| allows the check to be deferred until later in the > transaction, whereas |RESTRICT| does not.)" > > Can someone explain what this means in practical terms? Do both > options generate the same error message? Does "until later in the > transaction" mean that NO ACTION is not checked until an attempt is > made to commit the transaction? > > If someone can point me to a more detailed explanation I would > appreciate it. Thanks. > > Bill > After posting the question I found a more complete explanation in the manual.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера