pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
single-row deadlock
2+ messages / 1 participants
[nested] [flat]

* single-row deadlock
@ 2021-07-27 00:53  guntiso@latnet.lv
  0 siblings, 1 reply; 2+ messages in thread

From: guntiso@latnet.lv @ 2021-07-27 00:53 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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?





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: single-row deadlock
@ 2021-08-02 21:17  guntiso@latnet.lv
  parent: guntiso@latnet.lv
  0 siblings, 0 replies; 2+ messages in thread

From: guntiso@latnet.lv @ 2021-08-02 21:17 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

> After upgrading from PostgreSQL 9.6 to 13 we started to experience 
> locking issues once per week or two.

This turned out to be a performance problem and reused pid-s. No 
deadlock.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-08-02 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 00:53 single-row deadlock guntiso@latnet.lv
2021-08-02 21:17 ` guntiso@latnet.lv

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