StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
bool res = false;
-#ifndef assert_enabled
-#define assert_enabled 0
-#endif
-
switch (strategy)
{
case 10:
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
bool res = false;
-#ifndef assert_enabled
-#define assert_enabled 0
-#endif
-
switch (strategy)
{
case BTLessStrategyNumber:
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.18 2005/10/15 02:49:22 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.19 2006/01/08 21:24:36 tgl Exp $
*
*-------------------------------------------------------------------------
*/
volatile uint32 CritSectionCount = 0;
bool IsUnderPostmaster = false;
+bool assert_enabled = true;
int MaxBackends = 32;
int NBuffers = 64;
char *DataDir = ".";
-#ifndef assert_enabled
-bool assert_enabled = true;
-#endif
-
#define MAX_ON_EXITS 20
* 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 $
*
*--------------------------------------------------------------------
*/
/*
* 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;
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/postgres.h,v 1.71 2005/04/14 01:38:21 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/postgres.h,v 1.72 2006/01/08 21:24:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
/*
* Trap
* Generates an exception if the given condition is true.
- *
*/
#define Trap(condition, errorType) \
do { \
#define AssertMacro(condition) ((void)true)
#define AssertArg(condition)
#define AssertState(condition)
-#define assert_enabled 0
#else
#define Assert(condition) \
Trap(!(condition), "FailedAssertion")