Re: Vacuuming the operating system documentation
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Thomas Munro <thomas.munro@gmail.com>,
Magnus Hagander <magnus@hagander.net>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-06-08T13:51:00Z
Lists: pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes: > On 2020-06-07 17:00, Tom Lane wrote: >> Relevant to the current discussion: this creates a possible positive >> reason for setting dynamic_shared_memory_type to "sysv", namely if it's >> the best available way to get around RemoveIPC in a particular situation. >> Should we document that? > It sounds like both shared_memory_type and dynamic_shared_memory_type > ought to default to "sysv" on Linux. Per the discussion in the older thread, that would only fix things if we held at least one attach count constantly on every shared segment. IIUC, that's not guaranteed for DSAs. So changing dynamic_shared_memory_type would reduce the risk but not really fix anything. For the primary shm segment, we don't (without EXEC_BACKEND) really care if somebody unlinks the file prematurely, since backends inherit the mapping via fork. Hence, no need to change shared_memory_type. regards, tom lane
Commits
-
Doc: Update example symptom of systemd misconfiguration.
- 682c28baf925 10.14 landed
- a35896c4b2a1 11.9 landed
- b944b1d1a9ac 12.4 landed
- a1c940cc5882 13.0 landed
- d094bf93014b 14.0 landed
-
Doc: Clean up references to obsolete OS versions.
- c8be915aa9fc 13.0 landed