diff options
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 764071bd11b..878b48d39ef 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8939,7 +8939,7 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel, foundDep->refobjid == attTup->attcollation)) elog(ERROR, "found unexpected dependency for column"); - simple_heap_delete(depRel, &depTup->t_self); + CatalogTupleDelete(depRel, &depTup->t_self); } systable_endscan(scan); @@ -11177,7 +11177,7 @@ RemoveInheritance(Relation child_rel, Relation parent_rel) inhparent = ((Form_pg_inherits) GETSTRUCT(inheritsTuple))->inhparent; if (inhparent == RelationGetRelid(parent_rel)) { - simple_heap_delete(catalogRelation, &inheritsTuple->t_self); + CatalogTupleDelete(catalogRelation, &inheritsTuple->t_self); found = true; break; } @@ -11370,7 +11370,7 @@ drop_parent_dependency(Oid relid, Oid refclassid, Oid refobjid) dep->refobjid == refobjid && dep->refobjsubid == 0 && dep->deptype == DEPENDENCY_NORMAL) - simple_heap_delete(catalogRelation, &depTuple->t_self); + CatalogTupleDelete(catalogRelation, &depTuple->t_self); } systable_endscan(scan); |