From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Foreign keys and partitioned tables |
Date: | 2018-04-02 12:35:29 |
Message-ID: | bcf555a4-3a2c-2f40-8a3e-54e6b0a9b1a4@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 3/31/18 18:21, Alvaro Herrera wrote:
> Yeah, I started by putting what I thought was going to be just ALTER
> TABLE in that test, then moved to the other file and added what I
> thought were more complete tests there and failed to move stuff to
> alter_table. Honestly, I think these should mostly all belong in
> foreign_key,
right
> <para>
> - Partitioned tables do not support <literal>EXCLUDE</literal> or
> - <literal>FOREIGN KEY</literal> constraints; however, you can define
> - these constraints on individual partitions.
> + Partitioned tables do not support <literal>EXCLUDE</literal> constraints;
> + however, you can define these constraints on individual partitions.
> + Also, while it's possible to define <literal>PRIMARY KEY</literal>
> + constraints on partitioned tables, it is not supported to create foreign
> + keys cannot that reference them. This restriction will be lifted in a
This doesn't read correctly.
> + future release.
> </para>
> - tables and permanent tables.
> + tables and permanent tables. Also note that while it is permitted to
> + define a foreign key on a partitioned table, declaring a foreign key
> + that references a partitioned table is not allowed.
> <para>
Maybe use "possible" or "supported" instead of "allowed" and "permitted"
in this and similar cases.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Banck | 2018-04-02 12:48:50 | Re: [PATCH] Verify Checksums during Basebackups |
Previous Message | Etsuro Fujita | 2018-04-02 12:29:11 | Re: [HACKERS] Add support for tuple routing to foreign partitions |