Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d094bf9

Browse files
committed
Doc: Update example symptom of systemd misconfiguration.
In PostgreSQL 10, we stopped using System V semaphores on Linux systems. Update the example we give of an error message from a misconfigured system to show what people are most likely to see these days. Back-patch to 10, where PREFERRED_SEMAPHORES=UNNAMED_POSIX arrived. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CA%2BhUKGLmJUSwybaPQv39rB8ABpqJq84im2UjZvyUY4feYhpWMw%40mail.gmail.com
1 parent 879ad9f commit d094bf9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/src/sgml/runtime.sgml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ project.max-msg-ids=(priv,4096,deny)
11201120

11211121
<para>
11221122
If <productname>systemd</productname> is in use, some care must be taken
1123-
that IPC resources (shared memory and semaphores) are not prematurely
1123+
that IPC resources (including shared memory) are not prematurely
11241124
removed by the operating system. This is especially of concern when
11251125
installing PostgreSQL from source. Users of distribution packages of
11261126
PostgreSQL are less likely to be affected, as
@@ -1137,11 +1137,12 @@ project.max-msg-ids=(priv,4096,deny)
11371137
</para>
11381138

11391139
<para>
1140-
A typical observed effect when this setting is on is that the semaphore
1141-
objects used by a PostgreSQL server are removed at apparently random
1142-
times, leading to the server crashing with log messages like
1140+
A typical observed effect when this setting is on is that shared memory
1141+
objects used for parallel query execution are removed at apparently random
1142+
times, leading to errors and warnings while attempting to open and remove
1143+
them, like
11431144
<screen>
1144-
LOG: semctl(1234567890, 0, IPC_RMID, ...) failed: Invalid argument
1145+
WARNING: could not remove shared memory segment "/PostgreSQL.1450751626": No such file or directory
11451146
</screen>
11461147
Different types of IPC objects (shared memory vs. semaphores, System V
11471148
vs. POSIX) are treated slightly differently

0 commit comments

Comments
 (0)