]> granicus.if.org Git - postgresql/commit
Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Apr 2017 18:48:38 +0000 (14:48 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Apr 2017 18:48:38 +0000 (14:48 -0400)
commit6a4dda44e02bfd5148c13b00d8f81045a2e17f2c
tree852b14efebbc939f0b5cb6eb39ba5cc491f2d542
parente4fddfd49241dc8dfda354993bad8d5518df1873
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
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql