Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5a4dea

Browse files
committed
Document errhidecontext() where it ought to be documented.
Seems to have been missed when this function was added. Noted whilelooking at David Steele's proposal to add another similar function.
1 parent4b746f0 commite5a4dea

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 ofCONTEXT: bloats the log volume too much.
1084+
* inclusion ofcontext would bloat the log volume too much.
10851085
*/
10861086
int
10871087
errhidecontext(boolhide_ctx)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp