Re: [GENERAL] initdb fails to allocate shared memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] initdb fails to allocate shared memory
Date
Msg-id 23817.1282764514@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] initdb fails to allocate shared memory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> it appears from your report that OS X is also using ENOMEM when SHMALL
> is exceeded, which is not all that surprising because actually none of
> the spec-defined error codes cover SHMALL exhaustion.

A look into
http://www.opensource.apple.com/source/xnu/xnu-1504.7.4/bsd/kern/sysv_shm.c
confirms this:
if ((user_ssize_t)(shm_committed + btoc(total_size)) > shminfo.shmall)    return ENOMEM;

So this behavior is probably common among BSDen.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "A.M."
Date:
Subject: new notify payload as string
Next
From: Peter Eisentraut
Date:
Subject: Re: Python 2.7 deprecated the PyCObject API?