Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.

Robert Haas <rhaas@postgresql.org>

Commit: a0291c33070d7095bc8aa4f21a1f6ccf714b262f
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-04-28T18:50:36Z
Releases: 9.5.7
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

Files

Discussion