Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf73293a

Browse files
committed
Fix some documentation about FKs and partitioned tables
This got forgotten in f56f8f which has added foreign key support forpartitioned tables. In passing, add a mention about caveats applying totables partitioned using inheritance regarding indexes and foreign keys.Author: Paul A JungwirthReviewed-by: Amit Langote, Michael PaquierDiscussion:https://postgr.es/m/CA+renyUuSmYgmZjKc_DfUNVZ0uttF91-FwhDVW3F7WEPj0jL5w@mail.gmail.com
1 parentd890fa8 commitf73293a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎doc/src/sgml/ddl.sgml

Lines changed: 8 additions & 8 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp