Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.
authorRobert Haas
Fri, 28 Apr 2017 18:48:38 +0000 (14:48 -0400)
committerRobert Haas
Fri, 28 Apr 2017 18:50:36 +0000 (14:50 -0400)
commita0291c33070d7095bc8aa4f21a1f6ccf714b262f
tree7d0be717222a9536cd4339aefeed7cbfc5c392a1
parent54270d7ebcdc68a3dd995435e12ffd6596976b1e
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[email protected]
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql