Close with nolock

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

View File

@ -4003,7 +4003,7 @@ ErrorIfTableHasUnsupportedIdentityColumn(Oid relationId)
}
}
relation_close(relation, AccessShareLock);
relation_close(relation, NoLock);
}
@ -4023,7 +4023,6 @@ ErrorIfTableHasIdentityColumn(Oid relationId)
if (attributeForm->attidentity)
{
relation_close(relation, AccessShareLock);
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg(
"cannot complete operation on a table with identity column")));