Re: Shared memory changes in 9.4?

From: Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Shared memory changes in 9.4?
Date: 2014-05-28 00:22:08
Message-ID: CAOtHd0DPtxDT-cwYGYr1DtdL6nc7NCmc8RT+6xujOGf3wHwg7w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Mon, May 26, 2014 at 12:24 AM, Andres Freund <andres(at)2ndquadrant(dot)com>wrote:

> 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.
>

It works with 'none' and 'sysv'--I think the issue is that technically our
environment does support 'posix', but '/dev/shm' is indeed not mounted in
the LXC container, leading to a discrepancy between what initdb decides and
what's actually possible. Thanks for your help.

Thanks,
Maciek

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Haas 2014-05-28 03:23:51 Re: Shared memory changes in 9.4?
Previous Message Shaun Thomas 2014-05-27 19:02:45 Re: pgtune and massive shared_buffers recommendation

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-05-28 01:13:45 Re: jsonb failed assertions
Previous Message Tom Lane 2014-05-27 23:46:41 Re: [PATCH] Replacement for OSSP-UUID for Linux and BSD