diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-03-31 09:15:51 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-03-31 09:16:25 +0200 |
commit | 91c5a8caaa61055959aa5fb68a00e5f690e39a34 (patch) | |
tree | 57749510770bcb337e191e0053a69248ef7ad917 /src/include | |
parent | 287d2a97c1de07486e4525c8ad06258f04bd6268 (diff) | |
download | postgresql-91c5a8caaa61055959aa5fb68a00e5f690e39a34.tar.gz postgresql-91c5a8caaa61055959aa5fb68a00e5f690e39a34.zip |
Add errhint_plural() function and make use of it
Similar to existing errmsg_plural() and errdetail_plural(). Some
errhint() calls hadn't received the proper plural treatment yet.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/elog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index b59651289e4..9acb57a27b5 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -188,6 +188,9 @@ extern int errdetail_plural(const char *fmt_singular, const char *fmt_plural, extern int errhint(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errhint_plural(const char *fmt_singular, const char *fmt_plural, + unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); + /* * errcontext() is typically called in error context callback functions, not * within an ereport() invocation. The callback function can be in a different |