Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f73293a

Browse files
committed
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
1 parent d890fa8 commit f73293a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/src/sgml/ddl.sgml

+8-8
Original file line numberDiff line numberDiff line change
@@ -3964,14 +3964,6 @@ ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02
39643964
</para>
39653965
</listitem>
39663966

3967-
<listitem>
3968-
<para>
3969-
While primary keys are supported on partitioned tables, foreign
3970-
keys referencing partitioned tables are not supported. (Foreign key
3971-
references from a partitioned table to some other table are supported.)
3972-
</para>
3973-
</listitem>
3974-
39753967
<listitem>
39763968
<para>
39773969
<literal>BEFORE ROW</literal> triggers, if necessary, must be defined
@@ -4354,6 +4346,14 @@ ALTER TABLE measurement_y2008m02 INHERIT measurement;
43544346
</para>
43554347
</listitem>
43564348

4349+
<listitem>
4350+
<para>
4351+
Indexes and foreign key constraints apply to single tables and not
4352+
to their inheritance children, hence they have some
4353+
<link linkend="ddl-inherit-caveats">caveats</link> to be aware of.
4354+
</para>
4355+
</listitem>
4356+
43574357
<listitem>
43584358
<para>
43594359
The schemes shown here assume that the values of a row's key column(s)

0 commit comments

Comments
 (0)