Re: COPY documentation with regard to references constraints
В списке pgsql-general по дате отправления:
| От | Bruno Wolff III |
|---|---|
| Тема | Re: COPY documentation with regard to references constraints |
| Дата | |
| Msg-id | 20241031122002.GA4435@wolff.to обсуждение исходный текст |
| Ответ на | Re: COPY documentation with regard to references constraints (Dominique Devienne <ddevienne@gmail.com>) |
| Список | pgsql-general |
On Thu, Oct 31, 2024 at 13:15:34 +0100, Dominique Devienne <ddevienne@gmail.com> wrote: > >AFAIK, DEFERRABLE is for temporary violations crossing statement boundaries, >to postpone the enforcement of FKs at COMMIT time of the transaction. > >While a single COPY is just one statement, so whether a temporary violation >for self-referential FKs would occur would be implementation-dependent, >and thus "neither logical" nor predictable. > >Applies to other statement types too. Thanks. I needed to look more carefully under deferrable where it says the following: This controls whether the constraint can be deferred. A constraint that is not deferrable will be checked immediately after every command. That is pretty clear.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера