Hi, On 2014-05-25 12:26:20 -0700, Maciek Sakrejda wrote: > I've been trying to take the 9.4 beta for a spin, but seem to have run into > a shared memory issue on startup: > > FATAL: could not open shared memory segment "/PostgreSQL.1804289383": > Permission denied > > We're running Postgres inside LXC, which I suspect is causing problems > here, but 9.0 through 9.3 run just fine in the same configuration. Any chance you're using a 9.3 configuration file instead of the one generated by initdb? dynamic_shared_memory_type defaults to 'posix' if not specified in the config file (on platforms supporting it). If initdb detects that 'posix' can't be used it'll emit a different value. If you're copying the config from 9.3 and your environment doesn't support posix shm that'll cause the above error. I still think dynamic_shared_memory_type should default to 'none' because of such problems. > Any idea > what may have changed? I suspect the solution here is tweaking some LXC > setting, but I was hoping someone can point me in the right direction. It sounds like you're not allowing posix shared memory. Possibly just by not mounting /dev/shm. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services