【发布时间】:2013-10-22 19:27:07
【问题描述】:
我正在锁定两个没有互连列的不同表,但我仍然遇到死锁。
这是服务器日志:
2013-10-22 15:16:19 EDT ERROR: deadlock detected
2013-10-22 15:16:19 EDT DETAIL: Process 26762 waits for AccessExclusiveLock on relation 39913 of database 39693; blocked by process 26761.
Process 26761 waits for RowExclusiveLock on relation 40113 of database 39693; blocked by process 26762.
Process 26762: lock table par_times in access exclusive mode
Process 26761: INSERT INTO cached_float (entry_id, figure_type, value) VALUES (33225, 1, 54.759402056277075) RETURNING cached_float.id
有什么想法吗?
【问题讨论】:
-
请提供更多详细信息。 Postgres 的版本?您锁定了哪些表以及如何锁定?
标签: postgresql concurrency locking deadlock