doc: Mention validation attempt during ALTER INDEX .. ATTACH PARTITION

Since 9d3e094f12, the command tries to validate the parent index of the
named index, if invalid.  The documentation did not mention this
behavior, which could be confusing.

Author: Mohamed ALi <moali.pg@gmail.com>
Discussion: https://postgr.es/m/CAGnOmWpHu25_LpT=zv7KtetQhqV1QEZzFYLd_TDyOLu1Od9fpw@mail.gmail.com
Backpatch-through: 14
This commit is contained in:
Michael Paquier 2026-05-01 13:10:42 +09:00
parent 7bb5196358
commit 8f2429ff24

View file

@ -97,6 +97,11 @@ ALTER INDEX ALL IN TABLESPACE <replaceable class="parameter">name</replaceable>
index cannot be dropped by itself, and will automatically be dropped
if its parent index is dropped.
</para>
<para>
If the named index is already attached to the altered index, the
command will attempt to validate the parent index if the parent is
currently invalid.
</para>
</listitem>
</varlistentry>