postgres deadlock without explicit locking

后端 未结 2 1970
野趣味
野趣味 2021-01-06 13:45

I use PostgreSQL 9.2, and I do not use explicit locking anywhere, neither LOCK statement nor SELECT ... FOR UPDATE. However, recently I got E

2条回答
  •  暖寄归人
    2021-01-06 14:41

    I would suspect hash indexes first.

    • Switch any hash-indexes you have to B-tree
    • Use Serializable isolation level if it seems appropriate.

提交回复
热议问题