issue/6694
Gokhan Gulbiz 2023-03-29 10:15:09 +03:00
parent d38f9cb9d6
commit 9afadc0af8
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
2 changed files with 7 additions and 7 deletions

View File

@ -1153,7 +1153,6 @@ DropIdentitiesOnTable(Oid relationId)
dropCommandList = lappend(dropCommandList, dropCommand->data); dropCommandList = lappend(dropCommandList, dropCommand->data);
} }
} }
relation_close(relation, NoLock); relation_close(relation, NoLock);
@ -1162,12 +1161,12 @@ DropIdentitiesOnTable(Oid relationId)
foreach_ptr(dropCommand, dropCommandList) foreach_ptr(dropCommand, dropCommandList)
{ {
/* /*
* We need to disable/enable ddl propagation for this command, to prevent * We need to disable/enable ddl propagation for this command, to prevent
* sending unnecessary ALTER COLUMN commands for partitions, to MX workers. * sending unnecessary ALTER COLUMN commands for partitions, to MX workers.
*/ */
ExecuteAndLogUtilityCommandList(list_make3(DISABLE_DDL_PROPAGATION, ExecuteAndLogUtilityCommandList(list_make3(DISABLE_DDL_PROPAGATION,
dropCommand, dropCommand,
ENABLE_DDL_PROPAGATION)); ENABLE_DDL_PROPAGATION));
} }
} }

View File

@ -3996,7 +3996,8 @@ ErrorIfTableHasUnsupportedIdentityColumn(Oid relationId)
char *qualifiedRelationName = generate_qualified_relation_name(relationId); char *qualifiedRelationName = generate_qualified_relation_name(relationId);
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg( errmsg(
"cannot complete operation on %s with smallint/int identity column", qualifiedRelationName), "cannot complete operation on %s with smallint/int identity column",
qualifiedRelationName),
errhint( errhint(
"Use bigint identity column instead."))); "Use bigint identity column instead.")));
} }