summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFujii Masao2014-03-12 18:26:47 +0000
committerFujii Masao2014-03-12 18:26:47 +0000
commit588fb5071545ce6e8ffb6a88e146789560e6c879 (patch)
tree6dd0f34e13b25ac3f8431aefafae4fa21502b81d /src/include
parenta0b4c355c2f4e26735d28372c49f4661621988f2 (diff)
Show PIDs of lock holders and waiters in log_lock_waits log message.
Christian Kruse, reviewed by Kumar Rajeev Rastogi.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/utils/elog.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -182,6 +182,14 @@ errdetail_log(const char *fmt,...)
__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,...)
/* This extension allows gcc to check the format string for consistency with