Hello, current git of postgresql requires more semaphores than OpenBSD
currently suggests as a default, I propose to rise the limit to 100.
FreeBSD has 340, as a comparison.

Another solution may be to add the note to README of postgresql's port
to rise the limit for the future version, but it looks inconvenient.

Comments, OKs?

diff --git sys/sys/sem.h sys/sys/sem.h
index 184482d7810..03edc2e1d9e 100644
--- sys/sys/sem.h
+++ sys/sys/sem.h
@@ -153,7 +153,7 @@ extern struct seminfo       seminfo;
 #define SEMMNI 10              /* # of semaphore identifiers */
 #endif
 #ifndef SEMMNS
-#define SEMMNS 60              /* # of semaphores in system */
+#define SEMMNS 100             /* # of semaphores in system */
 #endif
 #ifndef SEMUME
 #define SEMUME 10              /* max # of undo entries per process */

Reply via email to