You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since commit ecb0d20 hasn't crashed and burned, here's the promised
docs update for it.
In addition to explaining that Linux and FreeBSD ports now use POSIX
semaphores, I did some wordsmithing on pre-existing wording; in
particular trying to clarify which SysV parameters need to be set with
an eye to total usage across all applications.
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers + max_worker_processes + 5) / 16)</literal> plus room for other applications</>
693
706
</row>
694
707
695
708
<row>
@@ -725,9 +738,8 @@ psql: could not connect to server: No such file or directory
725
738
(typically 48 bytes, on 64-bit platforms) for each copy of the server.
726
739
On most modern operating systems, this amount can easily be allocated.
727
740
However, if you are running many copies of the server, or if other
728
-
applications are also using System V shared memory, it may be necessary
729
-
to increase <varname>SHMMAX</>, the maximum size in bytes of a shared
730
-
memory segment, or <varname>SHMALL</>, the total amount of System V shared
741
+
applications are also using System V shared memory, it may be necessary to
742
+
increase <varname>SHMALL</>, which is the total amount of System V shared
731
743
memory system-wide. Note that <varname>SHMALL</> is measured in pages
732
744
rather than bytes on many systems.
733
745
</para>
@@ -742,6 +754,7 @@ psql: could not connect to server: No such file or directory
742
754
</para>
743
755
744
756
<para>
757
+
When using System V semaphores,
745
758
<productname>PostgreSQL</> uses one semaphore per allowed connection
746
759
(<xref linkend="guc-max-connections">), allowed autovacuum worker process
747
760
(<xref linkend="guc-autovacuum-max-workers">) and allowed background
@@ -779,15 +792,19 @@ psql: could not connect to server: No such file or directory
779
792
</para>
780
793
781
794
<para>
782
-
The <varname>SEMMSL</> parameter, which determines how many
783
-
semaphores can be in a set, must be at least 17 for
795
+
Various other settings related to <quote>semaphore undo</>, such as
796
+
<varname>SEMMNU</> and <varname>SEMUME</>, do not affect
784
797
<productname>PostgreSQL</>.
785
798
</para>
786
799
787
800
<para>
788
-
Various other settings related to <quote>semaphore undo</>, such as
789
-
<varname>SEMMNU</> and <varname>SEMUME</>, do not affect
790
-
<productname>PostgreSQL</>.
801
+
When using POSIX semaphores, the number of semaphores needed is the
802
+
same as for System V, that is one semaphore per allowed connection
803
+
(<xref linkend="guc-max-connections">), allowed autovacuum worker process
804
+
(<xref linkend="guc-autovacuum-max-workers">) and allowed background
805
+
process (<xref linkend="guc-max-worker-processes">).
806
+
On the platforms where this option is preferred, there is no specific
0 commit comments