Skip to content

Commit 7338ed2

Browse files
author
Etsuro Fujita
committed
Doc: Update documentation on partitioning vs. foreign tables.
The limitations that it is not allowed to create/attach a foreign table as a partition of an indexed partitioned table were not documented. Reported-By: Stepan Yankevych Author: Etsuro Fujita Reviewed-By: Amit Langote Backpatch-through: 11 where partitioned index was introduced Discussion: https://postgr.es/m/1553869152.858391073.5f8m3n0x@frv53.fwdcdn.com
1 parent 392ea22 commit 7338ed2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
859859
one will be created in the attached table; or, if an equivalent
860860
index already exists, will be attached to the target table's index,
861861
as if <command>ALTER INDEX ATTACH PARTITION</command> had been executed.
862+
Note that if the existing table is a foreign table, it is currently not
863+
allowed to attach the table as a partition of the target table if there
864+
are indexes on the target table. (See also
865+
<xref linkend="sql-createforeigntable"/>.)
862866
</para>
863867

864868
<para>

doc/src/sgml/ref/create_foreign_table.sgml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ CHECK ( <replaceable class="parameter">expression</replaceable> ) [ NO INHERIT ]
168168
the given parent table with specified partition bound values.
169169
See the similar form of
170170
<xref linkend="sql-createtable"/> for more details.
171+
Note that it is currently not allowed to create the foreign table as a
172+
partition of the parent table if there are indexes on the parent table.
173+
(See also
174+
<link linkend="sql-altertable"><command>ALTER TABLE ATTACH PARTITION</command></link>.)
171175
</para>
172176
</listitem>
173177
</varlistentry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy