1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-09 18:21:05 +03:00

Note that index_name in ALTER INDEX ATTACH PARTITION can be schema-qualified

Missed in 8b08f7d4820f; backpatch to all supported branches.

Reported-by: alvaro@datadoghq.com
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/172924785099.698.15236991344616673753@wrigleys.postgresql.org
This commit is contained in:
Álvaro Herrera 2024-10-20 15:36:20 +02:00
parent 11c87216d1
commit f1c141fe14
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -87,10 +87,11 @@ ALTER INDEX ALL IN TABLESPACE <replaceable class="parameter">name</replaceable>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><literal>ATTACH PARTITION</literal></term> <term><literal>ATTACH PARTITION <replaceable class="parameter">index_name</replaceable></literal></term>
<listitem> <listitem>
<para> <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 The named index must be on a partition of the table containing the
index being altered, and have an equivalent definition. An attached index being altered, and have an equivalent definition. An attached
index cannot be dropped by itself, and will automatically be dropped index cannot be dropped by itself, and will automatically be dropped