diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-05-29 11:19:06 -0400 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-05-29 11:19:06 -0400 |
commit | f73293aba4d43e48707e361b2b1ef1465fef46e0 (patch) | |
tree | b255a23914000de0cfa23ba78d2615b52cae0431 /doc/src | |
parent | d890fa812dd4620db0d092da1cd7cba01494cd21 (diff) | |
download | postgresql-f73293aba4d43e48707e361b2b1ef1465fef46e0.tar.gz postgresql-f73293aba4d43e48707e361b2b1ef1465fef46e0.zip |
Fix some documentation about FKs and partitioned tables
This got forgotten in f56f8f which has added foreign key support for
partitioned tables. In passing, add a mention about caveats applying to
tables partitioned using inheritance regarding indexes and foreign keys.
Author: Paul A Jungwirth
Reviewed-by: Amit Langote, Michael Paquier
Discussion: https://postgr.es/m/CA+renyUuSmYgmZjKc_DfUNVZ0uttF91-FwhDVW3F7WEPj0jL5w@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ddl.sgml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index a0a7435a03d..5fe5f864028 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -3966,14 +3966,6 @@ ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02 <listitem> <para> - While primary keys are supported on partitioned tables, foreign - keys referencing partitioned tables are not supported. (Foreign key - references from a partitioned table to some other table are supported.) - </para> - </listitem> - - <listitem> - <para> <literal>BEFORE ROW</literal> triggers, if necessary, must be defined on individual partitions, not the partitioned table. </para> @@ -4356,6 +4348,14 @@ ALTER TABLE measurement_y2008m02 INHERIT measurement; <listitem> <para> + Indexes and foreign key constraints apply to single tables and not + to their inheritance children, hence they have some + <link linkend="ddl-inherit-caveats">caveats</link> to be aware of. + </para> + </listitem> + + <listitem> + <para> The schemes shown here assume that the values of a row's key column(s) never change, or at least do not change enough to require it to move to another partition. An <command>UPDATE</command> that attempts |