| От | Tom Lane |
|---|---|
| Тема | Re: Exclusive Locks Taken on User Tables? |
| Дата | |
| Msg-id | 29165.1194381803@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Exclusive Locks Taken on User Tables? (Marc <pgsql-general@mbreslow.net>) |
| Ответы |
Re: Exclusive Locks Taken on User Tables?
|
| Список | pgsql-general |
Marc <pgsql-general@mbreslow.net> writes:
> Version of postgres is 8.2.4.
> ...
> second report that I always see that UPDATE statement and in the list of
> locks I see ExclusiveLock granted on the users table for one of the running
> pids but not the others.
Well, if it's not a foreign key issue then I think that the UPDATE is
blocked waiting for some previous updater of the same row to commit.
If you poke around a bit harder in pg_locks you'll probably find that
the UPDATE is waiting to acquire ShareLock on someone else's transaction
ID, and that someone else is the culprit.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера