Skip to content

Commit 3e6b0c4

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 edda32e commit 3e6b0c4

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
@@ -842,6 +842,10 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
842842
one will be created in the attached table; or, if an equivalent
843843
index already exists, will be attached to the target table's index,
844844
as if <command>ALTER INDEX ATTACH PARTITION</command> had been executed.
845+
Note that if the existing table is a foreign table, it is currently not
846+
allowed to attach the table as a partition of the target table if there
847+
are indexes on the target table. (See also
848+
<xref linkend="sql-createforeigntable"/>.)
845849
</para>
846850

847851
<para>

doc/src/sgml/ref/create_foreign_table.sgml

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