Re: [GENERAL] Server error and deadlocks
Re: [GENERAL] Server error and deadlocks
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Orr, Steve" writes: > I suspect table locks but are there any database level tracing > tools to show the SQL? Will the trace_locks and debug_deadlocks parameters > help and how do I use them? I do not think those will help you; they are low-level debugging aids and are probably far too verbose to be useful for tracing an occasional application problem. Besides which, they're not even compiled in by default. It seems to me that it would be appropriate for DeadLockCheck to emit more information about the problem it's found than just "there's a deadlock". How do people feel about reporting the detected cycle as a series of NOTICE messages? It would look pretty similar to the pg_locks view: NOTICE: Proc waits for on ; blocked by NOTICE: Proc waits for on ; blocked by NOTICE: Proc waits for on ; blocked by ERROR: Deadlock detected If that seems acceptable, I could code it up in short order. While I wouldn't want to apply it to the REL7_3_STABLE branch, I see no reason Steve wouldn't be able to use the patch locally to identify his problem. regards, tom lane
Re: [GENERAL] Server error and deadlocks
От:
Andrew Sullivan <andrew@libertyrms.info>
Дата:
On Tue, Jan 14, 2003 at 10:31:14AM -0500, Tom Lane wrote:
> deadlock". How do people feel about reporting the detected cycle as
> a series of NOTICE messages? It would look pretty similar to the
Yes, please!!
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
M2P 2A8
+1 416 646 3304 x110