]> git.ipfire.org Git - thirdparty/postgresql.git/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:53:56 +0000 (14:53 -0400)
commit954744f7ac759e2dfe1f52e4493f728b98c615f2
tree7dfce66df2aac24b465599647263b6e41c8b0bc7
parent8565808733ec127cf5972b4facc79889aee57850
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