Re: BUG #1549: initdb doesn't work - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1549: initdb doesn't work
Date
Msg-id 8977.1111167716@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #1549: initdb doesn't work  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Daniel van Eeden wrote:
>> creating template1 database in /opt/postgresql/data/base/1 ... FATAL:
>> semctl(10977333, 16, SETVAL, 536) failed: Invalid argument

> That is a problem with semaphores in your kernel.  Have you modified
> your postgresql.conf from the default?  If so, you should read the
> PostgreSQL documentation on how to modify your kernel for larger
> settings.

But it's failing at semctl() not semget().  So it seems he hasn't run
out of semaphores.  I wonder if SEMVMX is unusually small on his setup
(ie, less than 536).  My Linux semctl man page says that that case would
return ERANGE not EINVAL, but ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #1549: initdb doesn't work
Next
From: Andrew - Supernews
Date:
Subject: Re: BUG #1541: Unusually long INSERT times after fresh clean/CREATE TABLES