summaryrefslogtreecommitdiff
path: root/src/include/pg_config_manual.h
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2023-12-27 03:34:23 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2023-12-27 03:57:57 +0200
commit7d58f2342bd3d2f0474207b63a3a548c29e20a9e (patch)
treecc0326f2dd0291287a9c7b7c95abbccf77c26cf0 /src/include/pg_config_manual.h
parent71a3e8c43ba8f3d026ae0cb2c2df27455ffdca76 (diff)
REALLOCATE_BITMAPSETS manual compile-time option
This option forces each bitmapset modification to reallocate bitmapset. This is useful for debugging hangling pointers to bitmapset's. Discussion: https://postgr.es/m/CAMbWs4_wJthNtYBL%2BSsebpgF-5L2r5zFFk6xYbS0A78GKOTFHw%40mail.gmail.com Reviewed-by: Richard Guo, Andres Freund, Ashutosh Bapat, Andrei Lepikhov
Diffstat (limited to 'src/include/pg_config_manual.h')
-rw-r--r--src/include/pg_config_manual.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index 8a6e67a445d..16c383ba7f7 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -336,6 +336,12 @@
/* #define COPY_PARSE_PLAN_TREES */
/*
+ * Define this to force Bitmapset reallocation on each modification. Helps
+ * to find hangling pointers to Bitmapset's.
+ */
+/* #define REALLOCATE_BITMAPSETS */
+
+/*
* Define this to force all parse and plan trees to be passed through
* outfuncs.c/readfuncs.c, to facilitate catching errors and omissions in
* those modules.