@@ -604,13 +604,13 @@ psql: could not connect to server: No such file or directory
604604 <row>
605605 <entry><varname>SEMMNI</></>
606606 <entry>Maximum number of semaphore identifiers (i.e., sets)</>
607- <entry>at least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</literal></>
607+ <entry>at least <literal>ceil((max_connections + autovacuum_max_workers + 4 ) / 16)</literal></>
608608 </row>
609609
610610 <row>
611611 <entry><varname>SEMMNS</></>
612612 <entry>Maximum number of semaphores system-wide</>
613- <entry><literal>ceil((max_connections + autovacuum_max_workers) / 16) * 17</literal> plus room for other applications</>
613+ <entry><literal>ceil((max_connections + autovacuum_max_workers + 4 ) / 16) * 17</literal> plus room for other applications</>
614614 </row>
615615
616616 <row>
@@ -685,7 +685,7 @@ psql: could not connect to server: No such file or directory
685685 linkend="sysvipc-parameters">). The parameter <varname>SEMMNI</>
686686 determines the limit on the number of semaphore sets that can
687687 exist on the system at one time. Hence this parameter must be at
688- least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</>.
688+ least <literal>ceil((max_connections + autovacuum_max_workers + 4 ) / 16)</>.
689689 Lowering the number
690690 of allowed connections is a temporary workaround for failures,
691691 which are usually confusingly worded <quote>No space