]> 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:44 +0000 (14:48 -0400)
commit8a9c83bfaf889702401f532fbe2adaf604ca1bd6
tree8c30fbf4cf14e65e63db7d38e48d6b170349fd60
parent29e8c881dd077fd94d3f35a341c266f72e9285f2
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