diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 7e570a7477f..1045b398ab0 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -640,13 +640,13 @@ psql: could not connect to server: No such file or directory
SEMMNI>>
Maximum number of semaphore identifiers (i.e., sets)>
- at least ceil((max_connections + autovacuum_max_workers + 4) / 16)>
+ at least ceil((max_connections + autovacuum_max_workers + 5) / 16)>
SEMMNS>>
Maximum number of semaphores system-wide>
- ceil((max_connections + autovacuum_max_workers + 4) / 16) * 17 plus room for other applications>
+ ceil((max_connections + autovacuum_max_workers + 5) / 16) * 17 plus room for other applications>
@@ -721,7 +721,7 @@ psql: could not connect to server: No such file or directory
linkend="sysvipc-parameters">). The parameter SEMMNI>
determines the limit on the number of semaphore sets that can
exist on the system at one time. Hence this parameter must be at
- least ceil((max_connections + autovacuum_max_workers + 4) / 16)>.
+ least ceil((max_connections + autovacuum_max_workers + 5) / 16)>.
Lowering the number
of allowed connections is a temporary workaround for failures,
which are usually confusingly worded No space