diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-03-10 19:45:29 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-03-10 19:45:29 -0300 |
commit | cadead6c3c8ed81e09a3cb5101ff453758412f54 (patch) | |
tree | 1eae10fca6a7e392abd91e0a4c62e404ddbfbf16 | |
parent | f9ec64df8f25ecf69f870682abc6ff0950641610 (diff) |
Fix documentation on partitioning vs. foreign tables
1. The PARTITION OF clause of CREATE FOREIGN TABLE was not explained in
the CREATE FOREIGN TABLE reference page. Add it.
(Postgres 10 onwards)
2. The limitation that tuple routing cannot target partitions that are
foreign tables was not documented clearly enough. Improve wording.
(Postgres 10 onwards)
3. The UPDATE tuple re-routing concurrency behavior was explained in
the DDL chapter, which doesn't seem the right place. Move it to the
UPDATE reference page instead. (Postgres 11 onwards).
Authors: Amit Langote, David Rowley.
Reviewed-by: Etsuro Fujita.
Reported-by: Derek Hans
Discussion: https://postgr.es/m/CAGrP7a3Xc1Qy_B2WJcgAD8uQTS_NDcJn06O5mtS_Ne1nYhBsyw@mail.gmail.com
-rw-r--r-- | doc/src/sgml/ref/create_foreign_table.sgml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/create_foreign_table.sgml b/doc/src/sgml/ref/create_foreign_table.sgml index 065c982082d..38b18a02bb3 100644 --- a/doc/src/sgml/ref/create_foreign_table.sgml +++ b/doc/src/sgml/ref/create_foreign_table.sgml @@ -161,6 +161,18 @@ CHECK ( <replaceable class="PARAMETER">expression</replaceable> ) [ NO INHERIT ] </varlistentry> <varlistentry> + <term><literal>PARTITION OF <replaceable>parent_table</replaceable> FOR VALUES <replaceable class="PARAMETER">partition_bound_spec</replaceable></literal></term> + <listitem> + <para> + This form can be used to create the foreign table as partition of + the given parent table with specified partition bound values. + See the similar form of + <xref linkend="sql-createtable"> for more details. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><literal>CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable></literal></term> <listitem> <para> @@ -308,6 +320,11 @@ CHECK ( <replaceable class="PARAMETER">expression</replaceable> ) [ NO INHERIT ] responsibility to ensure that the constraint definition matches reality. </para> + + <para> + Although foreign tables can be specified as partitions, routing of tuples + to foreign-table partitions is not supported. + </para> </refsect1> <refsect1 id="SQL-CREATEFOREIGNTABLE-examples"> |