Skip to content

Commit 7090c3e

Browse files
committed
Make debug_assertions default to ON, when compiled in at all, for
backwards compatibility with old behavior.
1 parent b0d5036 commit 7090c3e

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
#ifdef USE_ASSERT_CHECKING
41-
bool assert_enabled;
41+
bool assert_enabled = true;
4242
#endif
4343
bool Debug_print_query = false;
4444
bool Debug_print_plan = false;
@@ -52,7 +52,7 @@ bool Show_executor_stats = false;
5252
bool Show_query_stats = false; /* this is sort of all three above together */
5353
bool Show_btree_build_stats = false;
5454

55-
bool SQL_inheritance;
55+
bool SQL_inheritance = true;
5656

5757

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

163163
#ifdef USE_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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy