mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Tighten ALTER FOREIGN TABLE .. SET DATA TYPE checks.
If the foreign table's rowtype is being used as the type of a column in another table, we can't just up and change its data type. This was already checked for composite types and ordinary tables, but we previously failed to enforce it for foreign tables.
This commit is contained in:
@@ -53,8 +53,7 @@ extern void RenameRelationInternal(Oid myrelid,
|
||||
Oid namespaceId);
|
||||
|
||||
extern void find_composite_type_dependencies(Oid typeOid,
|
||||
const char *origTblName,
|
||||
const char *origTypeName);
|
||||
char origRelkind, const char *origRelname);
|
||||
|
||||
extern AttrNumber *varattnos_map(TupleDesc olddesc, TupleDesc newdesc);
|
||||
extern AttrNumber *varattnos_map_schema(TupleDesc old, List *schema);
|
||||
|
||||
Reference in New Issue
Block a user