pgsql: Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.
Date: 2017-04-28 19:00:26
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.

Currently, trying to validate a NO INHERIT constraint on the parent will
search for the constraint in child tables (where it is not supposed to
exist), wrongly causing a "constraint does not exist" error.

Amit Langote, per a report from Hans Buschmann.

Discussion: http://postgr.es/m/[email protected]

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a0291c33070d7095bc8aa4f21a1f6ccf714b262f

Modified Files
--------------
src/backend/commands/tablecmds.c | 5 +++--
src/test/regress/expected/alter_table.out | 20 ++++++++++++++++++++
src/test/regress/sql/alter_table.sql | 15 +++++++++++++++
3 files changed, 38 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-04-28 19:33:47 pgsql: doc: Fix typo in 9.6 release notes
Previous Message Peter Eisentraut 2017-04-28 18:45:03 pgsql: psql: Support identity columns in sequence display