| От | Csaba Nagy |
|---|---|
| Тема | Re: Foreign Key Deadlocking |
| Дата | |
| Msg-id | 1176910597.16187.75.camel@coppola.muc.ecircle.de обсуждение исходный текст |
| Ответ на | Foreign Key Deadlocking ("Steven Flatt" <steven.flatt@gmail.com>) |
| Ответы |
Re: Foreign Key Deadlocking
|
| Список | pgsql-performance |
> Can someone confirm that I've identified the right fix? I'm pretty sure that won't help you... see: http://archives.postgresql.org/pgsql-general/2006-12/msg00029.php The deadlock will be there if you update/insert the child table and update/insert the parent table in the same transaction (even if you update some other field on the parent table than the key referenced by the child table). If your transactions always update/insert only one of those tables, it won't deadlock (assuming you order the inserts/updates properly per PK). Cheers, Csaba.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера