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

Commit7090c3e

Browse files
committed
Make debug_assertions default to ON, when compiled in at all, for
backwards compatibility with old behavior.
1 parentb0d5036 commit7090c3e

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.17 2000/07/22 14:49:00 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.18 2000/08/11 18:31:06 tgl Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -683,8 +683,11 @@ env PGOPTIONS='--geqo=off' psql
683683
Turns on various assertion checks. This is a debugging aid. If
684684
you are experiencing strange problems or crashes you might
685685
want to turn this on, as it might expose programming mistakes.
686-
To use this option, the macro <literal>USE_ASSERT_CHECKING</>
687-
must be defined when Postgres is built.
686+
To use this option, the macro <literal>USE_ASSERT_CHECKING</literal>
687+
must be defined when Postgres is built (see the configure option
688+
<literal>--enable-cassert</literal>). Note that
689+
<literal>DEBUG_ASSERTIONS</literal> defaults to ON if Postgres
690+
has been built this way.
688691
</para>
689692
</listitem>
690693
</varlistentry>

‎src/backend/utils/misc/guc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Support for grand unified configuration scheme, including SET
55
* command, configuration file, and command line options.
66
*
7-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.7 2000/07/14 15:43:47 thomas Exp $
7+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.8 2000/08/11 18:31:10 tgl Exp $
88
*
99
* Copyright 2000 by PostgreSQL Global Development Group
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -38,7 +38,7 @@ extern bool Log_connections;
3838
* Debugging options
3939
*/
4040
#ifdefUSE_ASSERT_CHECKING
41-
boolassert_enabled;
41+
boolassert_enabled= true;
4242
#endif
4343
boolDebug_print_query= false;
4444
boolDebug_print_plan= false;
@@ -52,7 +52,7 @@ bool Show_executor_stats = false;
5252
boolShow_query_stats= false;/* this is sort of all three above together */
5353
boolShow_btree_build_stats= false;
5454

55-
boolSQL_inheritance;
55+
boolSQL_inheritance= true;
5656

5757

5858
enumconfig_type
@@ -161,7 +161,7 @@ ConfigureNamesBool[] =
161161
{"log_pid",PGC_SIGHUP,&Log_pid, false},
162162

163163
#ifdefUSE_ASSERT_CHECKING
164-
{"debug_assertions",PGC_USERSET,&assert_enabled,false},
164+
{"debug_assertions",PGC_USERSET,&assert_enabled,true},
165165
#endif
166166

167167
{"debug_print_query",PGC_USERSET,&Debug_print_query, false},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp