Note that index_name in ALTER INDEX ATTACH PARTITION can be schema-qualified
authorÁlvaro Herrera <[email protected]>
Sun, 20 Oct 2024 13:36:20 +0000 (15:36 +0200)
committerÁlvaro Herrera <[email protected]>
Sun, 20 Oct 2024 13:36:20 +0000 (15:36 +0200)
Missed in 8b08f7d4820f; backpatch to all supported branches.

Reported-by: [email protected]
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/172924785099.698.15236991344616673753@wrigleys.postgresql.org

doc/src/sgml/ref/alter_index.sgml

index e26efec064bee3fe5502c2060cd3bf2b33de2841..1d42d05d8581625ee46bd5c58ba149bf5d41bfc4 100644 (file)
@@ -87,10 +87,11 @@ ALTER INDEX ALL IN TABLESPACE <replaceable class="parameter">name</replaceable>
    </varlistentry>
 
    <varlistentry>
-    <term><literal>ATTACH PARTITION</literal></term>
+    <term><literal>ATTACH PARTITION <replaceable class="parameter">index_name</replaceable></literal></term>
     <listitem>
      <para>
-      Causes the named index to become attached to the altered index.
+      Causes the named index (possibly schema-qualified) to become attached
+      to the altered index.
       The named index must be on a partition of the table containing the
       index being altered, and have an equivalent definition.  An attached
       index cannot be dropped by itself, and will automatically be dropped