Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +3 −2 |
| src/test/regress/expected/alter_table.out | modified | +20 −0 |
| src/test/regress/sql/alter_table.sql | modified | +15 −0 |
Discussion
- BUG #14629: ALTER TABLE VALIDATE CONSTRAINTS does not obey NO INHERIT clause 4 messages · 2017-04-21 → 2017-04-28