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/20170421184012.24362.19@wrigleys.postgresql.org
Branch
------
REL9_2_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f60f0c8fe3d871c8903b487734fd593313b16306
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(-)