From bfbc099a1ea5a4eec57d5d25c0dbb616e8724182 Mon Sep 17 00:00:00 2001
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Thu, 25 Nov 2021 11:29:41 -0300
Subject: [PATCH] Document units for max_slot_wal_keep_size

---
 doc/src/sgml/config.sgml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 3f806740d5..918d7ebd01 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -4175,6 +4175,11 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"'  # Windows
         to continue replication due to removal of required WAL files. You
         can see the WAL availability of replication slots
         in <link linkend="view-pg-replication-slots">pg_replication_slots</link>.
+        The value is rounded down to an integer number of WAL files
+        according to <varname>wal_segment_size</varname>.
+        If this value is specified without units, it is taken as megabytes.
+        This parameter can only be set in the
+        <filename>postgresql.conf</filename> file or on the server command line.
        </para>
        </listitem>
       </varlistentry>
-- 
2.30.2

