From: guntiso@latnet.lv
To: pgsql-general@lists.postgresql.org
Subject: single-row deadlock
Date: Tue, 27 Jul 2021 03:53:25 +0300
Message-ID: <2fcd64476bfaf1ca62f768508325825f@latnet.lv> (raw)
Hi,
After upgrading from PostgreSQL 9.6 to 13 we started to experience
locking issues once per week or two.
Replacing exclusive table lock with helper table row lock did not help.
Now it seems like a single-row deadlocks can occur, which should not be
possible (audit_data_lock table contains one row):
blocked_pid,blocking_pid,blocked_statement,current_statement_in_blocking_process,blocked_application,blocking_application
6752,6577,update audit_data_lock set locks_used = locks_used + 1,update
audit_data_lock set locks_used = locks_used + 1,PostgreSQL JDBC
Driver,PostgreSQL JDBC Driver
6577,6752,update audit_data_lock set locks_used = locks_used + 1,update
audit_data_lock set locks_used = locks_used + 1,PostgreSQL JDBC
Driver,PostgreSQL JDBC Driver
Is this a known issue? It seems like
https://postgrespro.com/list/thread-id/1231581. Are there any
workarounds?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: guntiso@latnet.lv
Subject: Re: single-row deadlock
In-Reply-To: <2fcd64476bfaf1ca62f768508325825f@latnet.lv>
References: <2fcd64476bfaf1ca62f768508325825f@latnet.lv>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox