> 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.