File tree Expand file tree Collapse file tree 5 files changed +8
-17
lines changed Expand file tree Collapse file tree 5 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -546,10 +546,6 @@ _ltree_consistent(PG_FUNCTION_ARGS)
546
546
StrategyNumber strategy = (StrategyNumber ) PG_GETARG_UINT16 (2 );
547
547
bool res = false;
548
548
549
- #ifndef assert_enabled
550
- #define assert_enabled 0
551
- #endif
552
-
553
549
switch (strategy )
554
550
{
555
551
case 10 :
Original file line number Diff line number Diff line change @@ -631,10 +631,6 @@ ltree_consistent(PG_FUNCTION_ARGS)
631
631
StrategyNumber strategy = (StrategyNumber ) PG_GETARG_UINT16 (2 );
632
632
bool res = false;
633
633
634
- #ifndef assert_enabled
635
- #define assert_enabled 0
636
- #endif
637
-
638
634
switch (strategy )
639
635
{
640
636
case BTLessStrategyNumber :
Original file line number Diff line number Diff line change 21
21
*
22
22
*
23
23
* IDENTIFICATION
24
- * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.18 2005/10/15 02:49:22 momjian Exp $
24
+ * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.19 2006/01/08 21:24:36 tgl Exp $
25
25
*
26
26
*-------------------------------------------------------------------------
27
27
*/
@@ -47,16 +47,13 @@ volatile uint32 InterruptHoldoffCount = 0;
47
47
volatile uint32 CritSectionCount = 0 ;
48
48
49
49
bool IsUnderPostmaster = false;
50
+ bool assert_enabled = true;
50
51
51
52
int MaxBackends = 32 ;
52
53
int NBuffers = 64 ;
53
54
54
55
char * DataDir = "." ;
55
56
56
- #ifndef assert_enabled
57
- bool assert_enabled = true;
58
- #endif
59
-
60
57
61
58
#define MAX_ON_EXITS 20
62
59
Original file line number Diff line number Diff line change 10
10
* Written by Peter Eisentraut <peter_e@gmx.net>.
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.307 2006/01/08 20:13:33 tgl Exp $
13
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.308 2006/01/08 21:24:36 tgl Exp $
14
14
*
15
15
*--------------------------------------------------------------------
16
16
*/
@@ -147,7 +147,11 @@ static const char *show_tcp_keepalives_count(void);
147
147
/*
148
148
* GUC option variables that are exported from this module
149
149
*/
150
+ #ifdef USE_ASSERT_CHECKING
150
151
bool assert_enabled = true;
152
+ #else
153
+ bool assert_enabled = false;
154
+ #endif
151
155
bool log_duration = false;
152
156
bool Debug_print_plan = false;
153
157
bool Debug_print_parse = false;
Original file line number Diff line number Diff line change 10
10
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
11
11
* Portions Copyright (c) 1995, Regents of the University of California
12
12
*
13
- * $PostgreSQL: pgsql/src/include/postgres.h,v 1.71 2005/04/14 01:38:21 tgl Exp $
13
+ * $PostgreSQL: pgsql/src/include/postgres.h,v 1.72 2006/01/08 21:24:37 tgl Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -484,7 +484,6 @@ extern DLLIMPORT bool assert_enabled;
484
484
/*
485
485
* Trap
486
486
* Generates an exception if the given condition is true.
487
- *
488
487
*/
489
488
#define Trap (condition , errorType ) \
490
489
do { \
@@ -510,7 +509,6 @@ extern DLLIMPORT bool assert_enabled;
510
509
#define AssertMacro (condition ) ((void)true)
511
510
#define AssertArg (condition )
512
511
#define AssertState (condition )
513
- #define assert_enabled 0
514
512
#else
515
513
#define Assert (condition ) \
516
514
Trap(!(condition), "FailedAssertion")
You can’t perform that action at this time.
0 commit comments