Skip dropped columns

issue/6694
Gokhan Gulbiz 2023-03-29 10:02:24 +03:00
parent b2ca538e12
commit d38f9cb9d6
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,12 @@ worker_modify_identity_columns(PG_FUNCTION_ARGS)
Form_pg_attribute attributeForm = TupleDescAttr(tableTupleDesc, Form_pg_attribute attributeForm = TupleDescAttr(tableTupleDesc,
attributeIndex); attributeIndex);
/* skip dropped columns */
if (attributeForm->attisdropped)
{
continue;
}
if (attributeForm->attidentity) if (attributeForm->attidentity)
{ {
Oid sequenceOid = getIdentitySequence(tableRelationId, Oid sequenceOid = getIdentitySequence(tableRelationId,