aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-03-31 09:15:51 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-03-31 09:16:25 +0200
commit91c5a8caaa61055959aa5fb68a00e5f690e39a34 (patch)
tree57749510770bcb337e191e0053a69248ef7ad917 /doc/src
parent287d2a97c1de07486e4525c8ad06258f04bd6268 (diff)
downloadpostgresql-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 'doc/src')
-rw-r--r--doc/src/sgml/sources.sgml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml
index 62cf2fded40..3f2c40b7509 100644
--- a/doc/src/sgml/sources.sgml
+++ b/doc/src/sgml/sources.sgml
@@ -284,6 +284,14 @@ ereport(ERROR,
</listitem>
<listitem>
<para>
+ <function>errhint_plural(const char *fmt_singular, const char *fmt_plural,
+ unsigned long n, ...)</function> is like <function>errhint</function>, but with
+ support for various plural forms of the message.
+ For more information see <xref linkend="nls-guidelines"/>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
<function>errcontext(const char *msg, ...)</function> is not normally called
directly from an <function>ereport</function> message site; rather it is used
in <literal>error_context_stack</literal> callback functions to provide