Disallow ALTER DOMAIN on non-domain type everywhere

Peter Eisentraut <peter_e@gmx.net>

Commit: 27874583627e049a049dc1327deb12a02a7013ab
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-01-27T19:20:34Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/commands/alter.c modified +2 −2
src/backend/commands/typecmds.c modified +16 −2
src/include/commands/typecmds.h modified +2 −2