diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 4f6b00bd739..88087654de9 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -870,6 +870,9 @@ AddNewAttributeTuples(Oid new_rel_oid, { Form_pg_attribute attr = TupleDescAttr(tupdesc, i); + if (attr->attisdropped) + continue; + /* Add dependency info */ ObjectAddressSubSet(myself, RelationRelationId, new_rel_oid, i + 1); ObjectAddressSet(referenced, TypeRelationId, attr->atttypid);