File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ ProcGlobalSemas(void)
132
132
* We need a sema per backend (including autovacuum), plus one for each
133
133
* auxiliary process.
134
134
*/
135
- return MaxBackends + NUM_AUXILIARY_PROCS ;
135
+ return MaxBackends + NUM_AUXILIARY_PROCS + NUM_EXTRA_SEMAPHORES ;
136
136
}
137
137
138
138
/*
Original file line number Diff line number Diff line change @@ -278,6 +278,11 @@ extern PGPROC *PreparedXactProcs;
278
278
*/
279
279
#define NUM_AUXILIARY_PROCS 4
280
280
281
+ /*
282
+ * Number of extra semaphores used by Postgres (right now 3 semaphores are used by multimaster)
283
+ */
284
+ #define NUM_EXTRA_SEMAPHORES 4
285
+
281
286
/* configurable options */
282
287
extern PGDLLIMPORT int DeadlockTimeout ;
283
288
extern int StatementTimeout ;
You can’t perform that action at this time.
0 commit comments