Skip to content

Commit 1c8302c

Browse files
committed
Add comment on why deadlock detection error messages only prints numbers.
1 parent 0240b28 commit 1c8302c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/storage/lmgr/deadlock.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.46 2007/03/03 19:32:54 neilc Exp $
15+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.47 2007/04/20 20:15:52 momjian Exp $
1616
*
1717
* Interface:
1818
*
@@ -836,6 +836,8 @@ PrintLockQueue(LOCK *lock, const char *info)
836836
* Append a description of a lockable object to buf.
837837
*
838838
* XXX probably this should be exported from lmgr.c or some such place.
839+
* Ideally we would print names for the numeric values, but that requires
840+
* getting locks on system tables, which might cause problems.
839841
*/
840842
static void
841843
DescribeLockTag(StringInfo buf, const LOCKTAG *lock)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy