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

Commitf56f8f8

Browse files
committed
Support foreign keys that reference partitioned tables
Previously, while primary keys could be made on partitioned tables, itwas not possible to define foreign keys that reference those primarykeys. Now it is possible to do that.Author: Álvaro HerreraReviewed-by: Amit Langote, Jesper PedersenDiscussion:https://postgr.es/m/20181102234158.735b3fevta63msbj@alvherre.pgsql
1 parent9155580 commitf56f8f8

File tree

15 files changed

+2039
-431
lines changed

15 files changed

+2039
-431
lines changed

‎doc/src/sgml/ref/create_table.sgml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,6 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
379379
<para>
380380
Partitioned tables do not support <literal>EXCLUDE</literal> constraints;
381381
however, you can define these constraints on individual partitions.
382-
Also, while it's possible to define <literal>PRIMARY KEY</literal>
383-
constraints on partitioned tables, creating foreign keys that
384-
reference a partitioned table is not yet supported.
385382
</para>
386383

387384
<para>
@@ -1028,9 +1025,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
10281025
addition of a foreign key constraint requires a
10291026
<literal>SHARE ROW EXCLUSIVE</literal> lock on the referenced table.
10301027
Note that foreign key constraints cannot be defined between temporary
1031-
tables and permanent tables. Also note that while it is possible to
1032-
define a foreign key on a partitioned table, it is not possible to
1033-
declare a foreign key that references a partitioned table.
1028+
tables and permanent tables.
10341029
</para>
10351030

10361031
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp