diff options
author | Tom Lane | 2016-03-28 18:18:00 +0000 |
---|---|---|
committer | Tom Lane | 2016-03-28 18:18:14 +0000 |
commit | e5a4dea80f2506a7a565508e48aaa52296ff410a (patch) | |
tree | d9d0810b8a3c79d124100073a1b26f2c8b03a8e4 | |
parent | 4b746f0d07c762cf4b421b59a14dfd053eda1761 (diff) |
Document errhidecontext() where it ought to be documented.
Seems to have been missed when this function was added. Noted while
looking at David Steele's proposal to add another similar function.
-rw-r--r-- | doc/src/sgml/sources.sgml | 9 | ||||
-rw-r--r-- | src/backend/utils/error/elog.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml index 614defaa2f..13409a7994 100644 --- a/doc/src/sgml/sources.sgml +++ b/doc/src/sgml/sources.sgml @@ -353,6 +353,15 @@ ereport(ERROR, includes the current statement already. </para> </listitem> + <listitem> + <para> + <function>errhidecontext(bool hide_ctx)</function> can be called to + specify suppression of the <literal>CONTEXT:</> portion of a message in + the postmaster log. This should only be used for verbose debugging + messages where the repeated inclusion of context would bloat the log + volume too much. + </para> + </listitem> </itemizedlist> </para> diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 458f3aa2b6..8e006097a6 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -1081,7 +1081,7 @@ errhidestmt(bool hide_stmt) * errhidecontext --- optionally suppress CONTEXT: field of log entry * * This should only be used for verbose debugging messages where the repeated - * inclusion of CONTEXT: bloats the log volume too much. + * inclusion of context would bloat the log volume too much. */ int errhidecontext(bool hide_ctx) |