diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-08 21:24:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-08 21:24:37 +0000 |
commit | 2645cb54cb2661bc44e57e93614012274af44937 (patch) | |
tree | f631a20d269b230f82804f7478f7498d5481e6d2 /src/backend/utils/misc/guc.c | |
parent | cbf39930d6b6d9d4bbc61c15ba2a4dd1057e0b6b (diff) |
Fix the assert_enabled issue properly. This eliminates the former ABI
difference between USE_ASSERT_CHECKING and not: the assert_enabled
variable is always there.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 9c8fce2aba5..b466e135b69 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.307 2006/01/08 20:13:33 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.308 2006/01/08 21:24:36 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -147,7 +147,11 @@ static const char *show_tcp_keepalives_count(void); /* * GUC option variables that are exported from this module */ +#ifdef USE_ASSERT_CHECKING bool assert_enabled = true; +#else +bool assert_enabled = false; +#endif bool log_duration = false; bool Debug_print_plan = false; bool Debug_print_parse = false; |