Forbidding renaming of ALTER AGGREGATE … RENAME TO …, ALTER COLLATION …
RENAME TO …, ALTER CONVERSION … RENAME TO …, ALTER OPERATOR CLASS …
RENAME TO …, ALTER OPERATOR FAMILY … RENAME TO …. Forbidding ALTER
TABLESPACE … MOVE …, too.
break;
case T_DropStmt:
+ break;
+
case T_RenameStmt:
- /* FIXME: catch unsupported rename operations */
+ {
+ RenameStmt *n = (RenameStmt *)parsetree;
+
+ switch(n->renameType)
+ {
+ case OBJECT_AGGREGATE:
+ case OBJECT_COLLATION:
+ case OBJECT_CONVERSION:
+ case OBJECT_OPCLASS:
+ case OBJECT_OPFAMILY:
+ error_unsupported_command(CreateCommandTag(parsetree));
+ break;
+
+ default:
+ break;
+ }
+ }
break;
case T_AlterObjectSchemaStmt:
break;
case T_AlterTableSpaceMoveStmt:
- /* XXX: forbid? */
+ error_unsupported_command("ALTER TABLESPACE ... MOVE");
break;
case T_AlterOwnerStmt: