pgsql: Disallow ALTER DOMAIN on non-domain type everywhere

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Disallow ALTER DOMAIN on non-domain type everywhere
Date: 2012-01-27 19:21:58
Message-ID: E1RqrN0-0006Yb-IA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Disallow ALTER DOMAIN on non-domain type everywhere

This has been the behavior already in most cases, but through
omission, ALTER DOMAIN / OWNER TO and ALTER DOMAIN / SET SCHEMA would
silently work on non-domain types as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/27874583627e049a049dc1327deb12a02a7013ab

Modified Files
--------------
src/backend/commands/alter.c | 4 ++--
src/backend/commands/typecmds.c | 18 ++++++++++++++++--
src/include/commands/typecmds.h | 4 ++--
3 files changed, 20 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2012-01-27 19:41:12 pgsql: Revert unfortunate whitespace change
Previous Message Peter Eisentraut 2012-01-27 18:21:54 pgsql: Hide most variable-length fields from Form_pg_* structs