Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c74c7e60
Commit
c74c7e60
authored
Oct 02, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn GUC log_min_error_statement off by default by setting it to PANIC.
parent
fd972e7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+9
-9
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+13
-2
No files found.
doc/src/sgml/runtime.sgml
View file @
c74c7e60
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.14
1 2002/09/27 02:04:39
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.14
2 2002/10/02 16:27:57
momjian Exp $
-->
<Chapter Id="runtime">
...
...
@@ -1036,15 +1036,15 @@ env PGOPTIONS='-c geqo=off' psql
<term><varname>LOG_MIN_ERROR_STATEMENT</varname> (<type>string</type>)</term>
<listitem>
<para>
This controls which log messages are accompanied by the original
query which generated the message. All queries matching the setting
or which are of a higher severity than the setting are logged. The
default is <literal>ERROR</literal>. Valid values are
<literal>DEBUG5</literal>, <literal>DEBUG4</literal>,
<literal>DEBUG3</literal>, <literal>DEBUG2</literal>,
This controls which message types output the original query to
the server logs. All queries matching the setting or higher are
logged. The default is <literal>PANIC</literal>. Valid values
are <literal>DEBUG5</literal>, <literal>DEBUG4</literal>,
<literal>DEBUG3</literal>, <literal>DEBUG2</literal>,
<literal>DEBUG1</literal>, <literal>INFO</literal>,
<literal>NOTICE</literal>, <literal>WARNING</literal>
and <literal>ERROR</literal>.
<literal>NOTICE</literal>, <literal>WARNING</literal>,
<literal>ERROR</literal>, <literal>FATAL</literal>, and
<literal>PANIC</literal>.
</para>
<para>
It is recommended you enable <literal>LOG_PID</literal> as well
...
...
src/backend/utils/misc/guc.c
View file @
c74c7e60
...
...
@@ -5,7 +5,7 @@
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.9
6 2002/09/22 19:52:38 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.9
7 2002/10/02 16:27:57 momjian
Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
...
@@ -104,7 +104,7 @@ bool Password_encryption = true;
int
log_min_error_statement
=
ERROR
;
char
*
log_min_error_statement_str
=
NULL
;
const
char
log_min_error_statement_str_default
[]
=
"
error
"
;
const
char
log_min_error_statement_str_default
[]
=
"
panic
"
;
int
server_min_messages
=
NOTICE
;
char
*
server_min_messages_str
=
NULL
;
...
...
@@ -3000,6 +3000,17 @@ assign_msglvl(int *var, const char *newval, bool doit, bool interactive)
if
(
doit
)
(
*
var
)
=
ERROR
;
}
/* We allow FATAL/PANIC for client-side messages too. */
else
if
(
strcasecmp
(
newval
,
"fatal"
)
==
0
)
{
if
(
doit
)
(
*
var
)
=
FATAL
;
}
else
if
(
strcasecmp
(
newval
,
"panic"
)
==
0
)
{
if
(
doit
)
(
*
var
)
=
PANIC
;
}
else
return
NULL
;
/* fail */
return
newval
;
/* OK */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment