| From: | Robert Haas <rhaas(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix VALIDATE CONSTRAINT to consider NO INHERIT attribute. |
| Date: | 2017-04-28 19:00:26 |
| Message-ID: | E1d4B7y-0006lB-1r@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6a4dda44e02bfd5148c13b00d8f81045a2e17f2c
Modified Files
--------------
src/backend/commands/tablecmds.c | 5 +++--
src/test/regress/expected/alter_table.out | 20 ++++++++++++++++++++
src/test/regress/sql/alter_table.sql | 15 +++++++++++++++
3 files changed, 38 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2017-04-28 19:33:47 | pgsql: doc: Fix typo in 9.6 release notes |
| Previous Message | Peter Eisentraut | 2017-04-28 18:45:03 | pgsql: psql: Support identity columns in sequence display |