Document errhidecontext() where it ought to be documented.
authorTom Lane
Mon, 28 Mar 2016 18:18:00 +0000 (14:18 -0400)
committerTom Lane
Mon, 28 Mar 2016 18:18:14 +0000 (14:18 -0400)
Seems to have been missed when this function was added.  Noted while
looking at David Steele's proposal to add another similar function.

doc/src/sgml/sources.sgml
src/backend/utils/error/elog.c

index 614defaa2f132c7597f22aa0c1ff362a5d609f51..13409a7994a5d018d6267a86cadbb0a9179a7a78 100644 (file)
@@ -353,6 +353,15 @@ ereport(ERROR,
      includes the current statement already.
     
    
+   
+    
+     errhidecontext(bool hide_ctx) can be called to
+     specify suppression of the 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.
+    
+   
   
    
 
index 458f3aa2b653b8b6f91742ede47253f8b2330bb9..8e006097a64c658f0c0115967dad78e2605695f6 100644 (file)
@@ -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)