From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Foreign keys on partitioned tables
Date: Fri, 6 Apr 2018 17:49:31 -0300
Message-ID: <20180406204931.vx5r5of7h3lq3txf@alvherre.pgsql> (raw)
In-Reply-To: <CA+TgmobWi8SK4Y00fihq-SgpGDohkiuFxFsVwOi-O1o5EdDmBQ@mail.gmail.com>
Robert Haas wrote:
> On Wed, Apr 4, 2018 at 1:03 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> > Foreign keys on partitioned tables
> >
> > Author: Álvaro Herrera
> > Discussion: https://postgr.es/m/20171231194359.cvojcour423ulha4@alvherre.pgsql
> > Reviewed-by: Peter Eisentraut
>
> The commit message here was so brief that I had to read the
> documentation to figure out exactly what this feature was.
I wrote three draft commit messages, and they all seemed to be saying
something so obvious (just repeating the commit title) that I decided
not to repeat myself. Evidently that was a mistake.
> In so doing, I ran across this, which seems to need some cleanup:
>
> + 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
> + future release.
>
> Generally, I think we're better off not committing to doing things in
> a future release because we never really know what will happen in the
> future,
True. I removed that sentence, leaving a "yet" that hints to the future
without making (I hope) too much of a promise.
> but the biggest problem here is that "it is not supported to
> create foreign keys cannot that reference them" doesn't make any
> sense. I think you mean something like "creating foreign keys that
> reference a partitioned table is not supported".
Yeah, I edited this a few times and evidently one word from some
previous iteration ("cannot") escaped deletion. I liked your wording so
I used it.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Foreign keys on partitioned tables
In-Reply-To: <20180406204931.vx5r5of7h3lq3txf@alvherre.pgsql>
References: <CA+TgmobWi8SK4Y00fihq-SgpGDohkiuFxFsVwOi-O1o5EdDmBQ@mail.gmail.com> <20180406204931.vx5r5of7h3lq3txf@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox