pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Default to dynamic_shared_memory_type=sysv on Solaris.
Date: Sat, 02 Jul 2022 04:26:15 +0000
Message-ID: <E1o7Uhy-000meM-8m@gemulon.postgresql.org> (raw)

Default to dynamic_shared_memory_type=sysv on Solaris.

POSIX shm_open() can sleep for a long time and fail spuriously because
of contention on an internal lock file on Solaris (and presumably
illumos).  Commit 389869af fixed the main problem with this, namely that
we could crash, but it's now clear that "posix" is not a good default.

Therefore, choose "sysv" at initdb time on Solaris and illumos.  Other
choices are still available by editing the postgresql.conf file.

Back-patch only to 15, because contention is much less likely further
back, and it doesn't seem like a good idea to change this in released
branches.  This should clear up the failures on build farm animal
margay.

Discussion: https://postgr.es/m/CA%2BhUKGKqKrCV5xKWfh9rnm%3Do%3DDwZLTLtnsj_XpUi9g5%3DV%2B9oyg%40mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a2b0719cc22d6f7fffa316b5da0fb5b22526c63e

Modified Files
--------------
doc/src/sgml/config.sgml                      | 2 +-
src/backend/utils/misc/postgresql.conf.sample | 2 +-
src/bin/initdb/initdb.c                       | 5 ++++-
3 files changed, 6 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1o7Uhy-000meM-8m@gemulon.postgresql.org>
Permalink:  ../E1o7Uhy-000meM-8m@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1o7Uhy-000meM-8m@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Default to dynamic_shared_memory_type=sysv on Solaris.
  In-Reply-To: <E1o7Uhy-000meM-8m@gemulon.postgresql.org>
  References: <E1o7Uhy-000meM-8m@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox