aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-12 02:28:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-12 02:28:43 +0000
commitc96439b5a0510f12e302a5b40a1b2d26dc52e140 (patch)
tree1f4c3e83d5da7fb42035eba3f7184503e31ec4c7
parent960af47efdc1670ef90bb1f19e03cd9469bb636b (diff)
downloadpostgresql-c96439b5a0510f12e302a5b40a1b2d26dc52e140.tar.gz
postgresql-c96439b5a0510f12e302a5b40a1b2d26dc52e140.zip
Don't make --enable-cassert turn on RANDOMIZE_ALLOCATED_MEMORY automatically;
it's just too dang expensive. Per recent discussion, but I just got my nose rubbed in it again while doing some performance checking.
-rw-r--r--src/include/pg_config_manual.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index 3ee0d6d91b6..3c1c1c0b8e6 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -6,7 +6,7 @@
* for developers. If you edit any of these, be sure to do a *full*
* rebuild (and an initdb if noted).
*
- * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.34 2008/06/24 17:58:27 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.35 2008/07/12 02:28:43 tgl Exp $
*------------------------------------------------------------------------
*/
@@ -155,15 +155,6 @@
*/
/*
- * Define this to cause palloc()'d memory to be filled with random data, to
- * facilitate catching code that depends on the contents of uninitialized
- * memory. Right now, this gets defined automatically if --enable-cassert.
- */
-#ifdef USE_ASSERT_CHECKING
-#define RANDOMIZE_ALLOCATED_MEMORY
-#endif
-
-/*
* Define this to cause pfree()'d memory to be cleared immediately, to
* facilitate catching bugs that refer to already-freed values.
* Right now, this gets defined automatically if --enable-cassert.
@@ -182,6 +173,13 @@
#endif
/*
+ * Define this to cause palloc()'d memory to be filled with random data, to
+ * facilitate catching code that depends on the contents of uninitialized
+ * memory. Caution: this is horrendously expensive.
+ */
+/* #define RANDOMIZE_ALLOCATED_MEMORY */
+
+/*
* Define this to force all parse and plan trees to be passed through
* copyObject(), to facilitate catching errors and omissions in
* copyObject().