diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-30 16:47:02 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-30 16:47:02 +0000 |
| commit | 219e29784dead71ed2c652057e131fe31ea7c354 (patch) | |
| tree | 48d7c93579e6ba53eef4936d01e429b0618a11ec /src/include/utils/elog.h | |
| parent | a3cac5a3bf76f0e99e7f8663cd4eb6295bb347d8 (diff) | |
| download | postgresql-219e29784dead71ed2c652057e131fe31ea7c354.tar.gz | |
Add GUC option log_error_verbosity to control which fields of error
reports get put into the postmaster log. Options are TERSE, DEFAULT,
VERBOSE, with the same behavior as implemented on the client side in
libpq.
Diffstat (limited to 'src/include/utils/elog.h')
| -rw-r--r-- | src/include/utils/elog.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index f10a15db65..b92bc83933 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: elog.h,v 1.44 2003/05/27 17:49:46 momjian Exp $ + * $Id: elog.h,v 1.45 2003/06/30 16:47:02 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -268,6 +268,15 @@ extern DLLIMPORT ErrorContextCallback *error_context_stack; /* GUC-configurable parameters */ + +typedef enum +{ + PGERROR_TERSE, /* single-line error messages */ + PGERROR_DEFAULT, /* recommended style */ + PGERROR_VERBOSE /* all the facts, ma'am */ +} PGErrorVerbosity; + +extern PGErrorVerbosity Log_error_verbosity; extern bool Log_timestamp; extern bool Log_pid; #ifdef HAVE_SYSLOG |
