We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d19102c commit 4bd28bfCopy full SHA for 4bd28bf
src/backend/storage/lmgr/proc.c
@@ -130,7 +130,7 @@ ProcGlobalSemas(void)
130
* We need a sema per backend (including autovacuum), plus one for each
131
* auxiliary process.
132
*/
133
- return MaxBackends + NUM_AUXILIARY_PROCS;
+ return MaxBackends + NUM_AUXILIARY_PROCS + NUM_EXTRA_SEMAPHORES;
134
}
135
136
/*
src/include/storage/proc.h
@@ -260,6 +260,10 @@ extern PGPROC *PreparedXactProcs;
260
261
#define NUM_AUXILIARY_PROCS 4
262
263
+/*
264
+ * Number of extra semaphores used by Postgres (right now 3 semaphores are used by multimaster)
265
+ */
266
+#define NUM_EXTRA_SEMAPHORES 4
267
268
/* configurable options */
269
extern int PGDLLIMPORT DeadlockTimeout;
0 commit comments