![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I know the original statement is printed right after this, but with complex triggers doing lots of write queries, I'm finding it difficult to identify which subsequent query in the trigger is really the one immediately preceding the deadlock. It would be helpful in debugging if the error message included info on which tables are involved, maybe even the deadlocking query itself, in the "DETAIL" output for future releases. |
#3
| |||
| |||
|
|
"Ed L." <pgsql (AT) bluepolka (DOT) net> writes: I know the original statement is printed right after this, but with complex triggers doing lots of write queries, I'm finding it difficult to identify which subsequent query in the trigger is really the one immediately preceding the deadlock. It would be helpful in debugging if the error message included info on which tables are involved, maybe even the deadlocking query itself, in the "DETAIL" output for future releases. I suppose the problem here has to do with conflicting SELECT FOR UPDATEs from foreign-key references. |
![]() |
| Thread Tools | |
| Display Modes | |
| |