| От | Tom Lane |
|---|---|
| Тема | Re: foreign key on delete cascade order? |
| Дата | |
| Msg-id | 658814.1646933907@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: foreign key on delete cascade order? (George Woodring <george.woodring@iglass.net>) |
| Ответы |
Re: foreign key on delete cascade order?
|
| Список | pgsql-general |
George Woodring <george.woodring@iglass.net> writes:
> I have always thought the way to avoid deadlocks was to update rows in the
> same order by the different updaters. Is there a better chain of thought
> for updating and deleting rows at the same time? Do we need to put a lock
> on the table to update, then have the delete queue up waiting for the lock
> to be removed?
With the amount of detail you've provided (viz: none), it's impossible
for anyone to guess what your problem actually is, let alone speculate
on suitable solutions.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера