mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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
This commit is contained in:
@ -2036,7 +2036,7 @@ include_dir 'conf.d'
|
||||
and <literal>mmap</literal> (to simulate shared memory using
|
||||
memory-mapped files stored in the data directory).
|
||||
Not all values are supported on all platforms; the first supported
|
||||
option is the default for that platform. The use of the
|
||||
option is usually the default for that platform. The use of the
|
||||
<literal>mmap</literal> option, which is not the default on any platform,
|
||||
is generally discouraged because the operating system may write
|
||||
modified pages back to disk repeatedly, increasing system I/O load;
|
||||
|
Reference in New Issue
Block a user