mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Message improvements
This commit is contained in:
@@ -184,7 +184,7 @@ PRINT_LWDEBUG(const char *where, LWLock *lock, LWLockMode mode)
|
||||
ereport(LOG,
|
||||
(errhidestmt(true),
|
||||
errhidecontext(true),
|
||||
errmsg("%d: %s(%s): excl %u shared %u haswaiters %u waiters %u rOK %d",
|
||||
errmsg_internal("%d: %s(%s): excl %u shared %u haswaiters %u waiters %u rOK %d",
|
||||
MyProcPid,
|
||||
where, MainLWLockNames[id],
|
||||
!!(state & LW_VAL_EXCLUSIVE),
|
||||
@@ -196,7 +196,7 @@ PRINT_LWDEBUG(const char *where, LWLock *lock, LWLockMode mode)
|
||||
ereport(LOG,
|
||||
(errhidestmt(true),
|
||||
errhidecontext(true),
|
||||
errmsg("%d: %s(%s %d): excl %u shared %u haswaiters %u waiters %u rOK %d",
|
||||
errmsg_internal("%d: %s(%s %d): excl %u shared %u haswaiters %u waiters %u rOK %d",
|
||||
MyProcPid,
|
||||
where, T_NAME(lock), id,
|
||||
!!(state & LW_VAL_EXCLUSIVE),
|
||||
@@ -219,13 +219,13 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
|
||||
ereport(LOG,
|
||||
(errhidestmt(true),
|
||||
errhidecontext(true),
|
||||
errmsg("%s(%s): %s", where,
|
||||
errmsg_internal("%s(%s): %s", where,
|
||||
MainLWLockNames[id], msg)));
|
||||
else
|
||||
ereport(LOG,
|
||||
(errhidestmt(true),
|
||||
errhidecontext(true),
|
||||
errmsg("%s(%s %d): %s", where,
|
||||
errmsg_internal("%s(%s %d): %s", where,
|
||||
T_NAME(lock), id, msg)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user