| От | Tom Lane |
|---|---|
| Тема | Re: Recursive FOREIGN KEY? |
| Дата | |
| Msg-id | 21164.1081057453@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Recursive FOREIGN KEY? (Joe Stump <joe@joestump.net>) |
| Ответы |
Re: Recursive FOREIGN KEY?
|
| Список | pgsql-general |
Joe Stump <joe@joestump.net> writes:
> I was getting an error on the parentID reference because there were no
> records to reference in the first place. Odd.
It should work, because the FK check is an end-of-statement check and
should consider the just-inserted row as available for referencing.
What PG version are you using, and can you show the exact sequence of
operations that produces a failure for you?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера