From 588fb5071545ce6e8ffb6a88e146789560e6c879 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Thu, 13 Mar 2014 03:26:47 +0900 Subject: Show PIDs of lock holders and waiters in log_lock_waits log message. Christian Kruse, reviewed by Kumar Rajeev Rastogi. --- src/include/utils/elog.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include') diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index d7916c22f9..427d52d878 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -181,6 +181,14 @@ errdetail_log(const char *fmt,...) the supplied arguments. */ __attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2))); +extern int +errdetail_log_plural(const char *fmt_singular, const char *fmt_plural, + unsigned long n,...) +/* This extension allows gcc to check the format string for consistency with + the supplied arguments. */ +__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 4))) +__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 4))); + extern int errdetail_plural(const char *fmt_singular, const char *fmt_plural, unsigned long n,...) -- cgit v1.2.3