aboutsummaryrefslogtreecommitdiff
path: root/src/include/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/config.h.in')
-rw-r--r--src/include/config.h.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in
index ad277bd001b..07e48851ffb 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -9,10 +9,17 @@
#define CONFIG_H
/*
- * Maximum number of backend server processes per postmaster.
+ * Default runtime limit on number of backend server processes per postmaster;
+ * this is just the default setting for the postmaster's -N switch.
* (Actual value is set by configure script.)
*/
-#undef MAXBACKENDS
+#undef DEF_MAXBACKENDS
+
+/*
+ * Hard limit on number of backend server processes per postmaster.
+ * Increasing this costs about 32 bytes per process slot as of v 6.5.
+ */
+#define MAXBACKENDS (DEF_MAXBACKENDS > 1024 ? DEF_MAXBACKENDS : 1024)
/*
* Size of a disk block --- currently, this limits the size of a tuple.