From: Álvaro Herrera Date: Sun, 20 Oct 2024 13:36:20 +0000 (+0200) Subject: Note that index_name in ALTER INDEX ATTACH PARTITION can be schema-qualified X-Git-Tag: REL_18_BETA1~1672 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=f1c141fe143cc362d6db918db5008c25e2df7a62;p=postgresql.git 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 Discussion: https://postgr.es/m/172924785099.698.15236991344616673753@wrigleys.postgresql.org --- diff --git a/doc/src/sgml/ref/alter_index.sgml b/doc/src/sgml/ref/alter_index.sgml index e26efec064b..1d42d05d858 100644 --- a/doc/src/sgml/ref/alter_index.sgml +++ b/doc/src/sgml/ref/alter_index.sgml @@ -87,10 +87,11 @@ ALTER INDEX ALL IN TABLESPACE name - ATTACH PARTITION + ATTACH PARTITION index_name - 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