Skip to content

Commit e5a4dea

Browse files
committed
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.
1 parent 4b746f0 commit e5a4dea

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/src/sgml/sources.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ ereport(ERROR,
353353
includes the current statement already.
354354
</para>
355355
</listitem>
356+
<listitem>
357+
<para>
358+
<function>errhidecontext(bool hide_ctx)</function> can be called to
359+
specify suppression of the <literal>CONTEXT:</> portion of a message in
360+
the postmaster log. This should only be used for verbose debugging
361+
messages where the repeated inclusion of context would bloat the log
362+
volume too much.
363+
</para>
364+
</listitem>
356365
</itemizedlist>
357366
</para>
358367

src/backend/utils/error/elog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ errhidestmt(bool hide_stmt)
10811081
* errhidecontext --- optionally suppress CONTEXT: field of log entry
10821082
*
10831083
* This should only be used for verbose debugging messages where the repeated
1084-
* inclusion of CONTEXT: bloats the log volume too much.
1084+
* inclusion of context would bloat the log volume too much.
10851085
*/
10861086
int
10871087
errhidecontext(bool hide_ctx)

0 commit comments

Comments
 (0)