Adjust deadlock trap to match postgres format.