From 8ab1dc768d74f264b8f5cd025fcb0ce84ced2e69 Mon Sep 17 00:00:00 2001
From: Vignesh C <vignesh21@gmail.com>
Date: Thu, 16 Apr 2026 12:36:34 +0530
Subject: [PATCH] Improve slot prerequisite wording for logical replication
 upgrade

Rephrase the logical slot prerequisite checks in the upgrade
documentation to make the conditions easier to read.

The previous wording used negative constructions such as "there are no
slots whose ... is not true" and "must not have permanent logical
slots", which made the requirements harder to parse quickly.

Rewrite these checks using direct positive phrasing:
all slots on the old cluster must have conflicting = false, and the
new cluster may only contain temporary logical slots where temporary =
true.

This improves readability while keeping the meaning unchanged.
---
 doc/src/sgml/logical-replication.sgml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml
index 23b268273b9..b112cfde7e7 100644
--- a/doc/src/sgml/logical-replication.sgml
+++ b/doc/src/sgml/logical-replication.sgml
@@ -2785,18 +2785,17 @@ CONTEXT:  processing remote data for replication origin "pg_16395" during "INSER
     </listitem>
     <listitem>
      <para>
-      All slots on the old cluster must be usable, i.e., there are no slots
-      whose
+      All slots on the old cluster must be usable, i.e., their
       <link linkend="view-pg-replication-slots">pg_replication_slots</link>.<structfield>conflicting</structfield>
-      is not <literal>true</literal>.
+      is <literal>false</literal>.
      </para>
     </listitem>
     <listitem>
      <para>
-      The new cluster must not have permanent logical slots, i.e.,
-      there must be no slots where
+      The new cluster is only permitted to have temporary logical slots, i.e.,
+      ones where
       <link linkend="view-pg-replication-slots">pg_replication_slots</link>.<structfield>temporary</structfield>
-      is <literal>false</literal>.
+      is <literal>true</literal>.
      </para>
     </listitem>
    </itemizedlist>
-- 
2.43.0

