From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix another bug in merging of inherited CHECK constraints. |
Date: | 2016-10-13 21:05:39 |
Message-ID: | E1bunC7-0007oy-2S@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix another bug in merging of inherited CHECK constraints.
It's not good for an inherited child constraint to be marked connoinherit;
that would result in the constraint not propagating to grandchild tables,
if any are created later. The code mostly prevented this from happening
but there was one case that was missed.
This is somewhat related to commit e55a946a8, which also tightened checks
on constraint merging. Hence, back-patch to 9.2 like that one. This isn't
so much because there's a concrete feature-related reason to stop there,
as to avoid having more distinct behaviors than we have to in this area.
Amit Langote
Discussion: <b28ee774-7009-313d-dd55-5bdd81242c41(at)lab(dot)ntt(dot)co(dot)jp>
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/6f2db29ecb3c2bdb57dd11b5fec85af637e6602f
Modified Files
--------------
src/backend/catalog/heap.c | 11 +++++++++++
src/test/regress/expected/inherit.out | 3 +++
src/test/regress/sql/inherit.sql | 3 +++
3 files changed, 17 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2016-10-13 21:14:42 | Re: pgsql: Make pg_dumpall's database ACL query independent of hash table o |
Previous Message | Tom Lane | 2016-10-13 20:08:22 | pgsql: Remove dead code in pg_dump. |