pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix another bug in merging of inherited CHECK constraints. 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.jp> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/3cca13cbfcc5312f7ae1728213e197c6f37ca62a 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.jp> Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f9e8b05e5f1c5eeaa963a9550ba6a592bdcb9a97 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.jp> Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/3217ac3a98673b1520d774f2a61fffc237874e47 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.jp> Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f2024d59ae7f20b8d51eaf29e543c50ec88488f0 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.jp> Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f0bf0f233cdb18086f0dcbcac1625e125d8badca 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix another bug in merging of inherited CHECK constraints. @ 2016-10-13 21:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-10-13 21:05 UTC (permalink / raw) To: 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@lab.ntt.co.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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-10-13 21:05 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 21:05 pgsql: Fix another bug in merging of inherited CHECK constraints. Tom Lane <tgl@sss.pgh.pa.us>
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