From 1c8302cab32b7a38332a1f8a8d17583cd3a724e0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 20 Apr 2007 20:15:52 +0000 Subject: [PATCH] Add comment on why deadlock detection error messages only prints numbers. --- src/backend/storage/lmgr/deadlock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/storage/lmgr/deadlock.c b/src/backend/storage/lmgr/deadlock.c index f2130083ee..e767de4165 100644 --- a/src/backend/storage/lmgr/deadlock.c +++ b/src/backend/storage/lmgr/deadlock.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.46 2007/03/03 19:32:54 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.47 2007/04/20 20:15:52 momjian Exp $ * * Interface: * @@ -836,6 +836,8 @@ PrintLockQueue(LOCK *lock, const char *info) * Append a description of a lockable object to buf. * * XXX probably this should be exported from lmgr.c or some such place. + * Ideally we would print names for the numeric values, but that requires + * getting locks on system tables, which might cause problems. */ static void DescribeLockTag(StringInfo buf, const LOCKTAG *lock)