Commit e5a4dea8 authored by Tom Lane's avatar Tom Lane

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.
parent 4b746f0d
...@@ -353,6 +353,15 @@ ereport(ERROR, ...@@ -353,6 +353,15 @@ ereport(ERROR,
includes the current statement already. includes the current statement already.
</para> </para>
</listitem> </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> </itemizedlist>
</para> </para>
......
...@@ -1081,7 +1081,7 @@ errhidestmt(bool hide_stmt) ...@@ -1081,7 +1081,7 @@ errhidestmt(bool hide_stmt)
* errhidecontext --- optionally suppress CONTEXT: field of log entry * errhidecontext --- optionally suppress CONTEXT: field of log entry
* *
* This should only be used for verbose debugging messages where the repeated * 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 int
errhidecontext(bool hide_ctx) errhidecontext(bool hide_ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment