diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 72ab7df21bf..5df95ddde61 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -869,6 +869,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);