diff options
author | Álvaro Herrera <alvherre@alvh.no-ip.org> | 2024-10-20 15:36:20 +0200 |
---|---|---|
committer | Álvaro Herrera <alvherre@alvh.no-ip.org> | 2024-10-20 15:36:20 +0200 |
commit | dd27cc044447202580ab24eedd114a264197710d (patch) | |
tree | edf340a481194f47d3e92cd8eb333d5bd41e94e2 | |
parent | 4fa80a6d7d4bde83065a5e1d84c01522d2fd368c (diff) |
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
-rw-r--r-- | doc/src/sgml/ref/alter_index.sgml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/alter_index.sgml b/doc/src/sgml/ref/alter_index.sgml index 6d04992faca..ef12b865e7d 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 <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 |