1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Message improvements

This commit is contained in:
Peter Eisentraut
2015-11-16 21:16:42 -05:00
parent 75c8af902e
commit 689cabf402
26 changed files with 76 additions and 80 deletions

View File

@@ -187,7 +187,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), T_ID(lock),
!!(state & LW_VAL_EXCLUSIVE),
@@ -207,7 +207,7 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
ereport(LOG,
(errhidestmt(true),
errhidecontext(true),
errmsg("%s(%s %d): %s", where,
errmsg_internal("%s(%s %d): %s", where,
T_NAME(lock), T_ID(lock), msg)));
}
}