]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Patch from Massimo Dal Zotto <dz@cs.unitn.it>
authorMarc G. Fournier <scrappy@hub.org>
Wed, 12 Feb 1997 05:25:13 +0000 (05:25 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 12 Feb 1997 05:25:13 +0000 (05:25 +0000)
commitfb70587c1d5e111dfe63893c4dd934b430267ef5
tree930f745f0705a3b6da38f83581bd6ee4df7e7582
parentba82bb3eacdeef77377b8a9dc9126c506d3f7b11
Patch from Massimo Dal Zotto <dz@cs.unitn.it>

The following patches add to the backend a new debugging flag -K which prints
a debug trace of all locking operations on user relations (those with oid
greater than 20000). The code is compiled only if LOCK_MGR_DEBUG is defined,
so the patch should be harmless if not explicitly enabled.
I'm using the code to trace deadlock conditions caused by application queries
using the command "$POSTMASTER -D $PGDATA -o '-d 1 -K 1'.
The patches are for version 6.0 dated 970126.
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/include/storage/lock.h