pgsql: Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constrai - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constrai
Date
Msg-id E1RirUE-0007d6-WF@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constraint

ALTER DOMAIN / DROP CONSTRAINT on a nonexistent constraint name did
not report any error.  Now it reports an error.  The IF EXISTS option
was added to get the usual behavior of ignoring nonexistent objects to
drop.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/104e7dac28c56dcaf9b778dff60a5daefc3a0661

Modified Files
--------------
doc/src/sgml/ref/alter_domain.sgml   |    6 ++++--
src/backend/commands/typecmds.c      |   17 ++++++++++++++++-
src/backend/nodes/copyfuncs.c        |    1 +
src/backend/nodes/equalfuncs.c       |    1 +
src/backend/parser/gram.y            |   12 ++++++++++++
src/backend/tcop/utility.c           |    3 ++-
src/include/commands/typecmds.h      |    2 +-
src/include/nodes/parsenodes.h       |    1 +
src/test/regress/expected/domain.out |    4 ++++
src/test/regress/sql/domain.sql      |    3 +++
10 files changed, 45 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Work around perl bug in SvPVutf8().
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_dump: Dump operators with the same name ordered by arity