Re: Strange deadlock with object/target of lock : transaction

Поиск
Список
Период
Сортировка
Искать
От
Laurenz Albe
Тема
Re: Strange deadlock with object/target of lock : transaction
Дата
Msg-id
0b74ce6492f901730776a620ff411b8369dc443d.camel@cybertec.at
Ответ на
Список
Дерево обсуждения
Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Adrian Klaver <adrian.klaver@aklaver.com>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Laurenz Albe <laurenz.albe@cybertec.at>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Adrian Klaver <adrian.klaver@aklaver.com>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
Re: Strange deadlock with object/target of lock : transaction Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
On Mon, 2025-08-25 at 15:40 +0100, Achilleas Mantzios wrote:
> > > > > We've been hit by a weird deadlock which it took me some days to isolate and replicate.
> > > > > It does not have to do with order of updates or any explicit TABLE-level locking,
> > > > > the objects/targets of the deadlock in question are transactions. 
> 
> Hi I reproduced without the triggers, I understood the problem, I believe the system's
> behavior is the intended, I am sorry for the false alarm. The thing is that it takes >=3
> transactions to happen . That was the tricky part, up to now in all cases of deadlocks
> we had two transactions involved, this one needed three or more.

Yes, waiting for a transaction means that you are waiting for a row lock.
See https://www.cybertec-postgresql.com/en/row-locks-in-postgresql/

Yours,
Laurenz Albe


В списке pgsql-general по дате отправления
От: DINESH NAIR
Дата:
От: Dominique Devienne
Дата:
Сообщение: Re: DISABLE TRIGGER doc wrong?
FAQ