@ -1417,7 +1417,7 @@ RelationRemoveInheritance(Oid relid)
NULL , 1 , & key ) ;
NULL , 1 , & key ) ;
while ( HeapTupleIsValid ( tuple = systable_getnext ( scan ) ) )
while ( HeapTupleIsValid ( tuple = systable_getnext ( scan ) ) )
simple_heap_d elete( catalogRelation , & tuple - > t_self ) ;
CatalogTupleD elete( catalogRelation , & tuple - > t_self ) ;
systable_endscan ( scan ) ;
systable_endscan ( scan ) ;
heap_close ( catalogRelation , RowExclusiveLock ) ;
heap_close ( catalogRelation , RowExclusiveLock ) ;
@ -1445,7 +1445,7 @@ DeleteRelationTuple(Oid relid)
elog ( ERROR , " cache lookup failed for relation %u " , relid ) ;
elog ( ERROR , " cache lookup failed for relation %u " , relid ) ;
/* delete the relation tuple from pg_class, and finish up */
/* delete the relation tuple from pg_class, and finish up */
simple_heap_d elete( pg_class_desc , & tup - > t_self ) ;
CatalogTupleD elete( pg_class_desc , & tup - > t_self ) ;
ReleaseSysCache ( tup ) ;
ReleaseSysCache ( tup ) ;
@ -1482,7 +1482,7 @@ DeleteAttributeTuples(Oid relid)
/* Delete all the matching tuples */
/* Delete all the matching tuples */
while ( ( atttup = systable_getnext ( scan ) ) ! = NULL )
while ( ( atttup = systable_getnext ( scan ) ) ! = NULL )
simple_heap_d elete( attrel , & atttup - > t_self ) ;
CatalogTupleD elete( attrel , & atttup - > t_self ) ;
/* Clean up after the scan */
/* Clean up after the scan */
systable_endscan ( scan ) ;
systable_endscan ( scan ) ;
@ -1523,7 +1523,7 @@ DeleteSystemAttributeTuples(Oid relid)
/* Delete all the matching tuples */
/* Delete all the matching tuples */
while ( ( atttup = systable_getnext ( scan ) ) ! = NULL )
while ( ( atttup = systable_getnext ( scan ) ) ! = NULL )
simple_heap_d elete( attrel , & atttup - > t_self ) ;
CatalogTupleD elete( attrel , & atttup - > t_self ) ;
/* Clean up after the scan */
/* Clean up after the scan */
systable_endscan ( scan ) ;
systable_endscan ( scan ) ;
@ -1570,7 +1570,7 @@ RemoveAttributeById(Oid relid, AttrNumber attnum)
{
{
/* System attribute (probably OID) ... just delete the row */
/* System attribute (probably OID) ... just delete the row */
simple_heap_d elete( attr_rel , & tuple - > t_self ) ;
CatalogTupleD elete( attr_rel , & tuple - > t_self ) ;
}
}
else
else
{
{
@ -1715,7 +1715,7 @@ RemoveAttrDefaultById(Oid attrdefId)
myrel = relation_open ( myrelid , AccessExclusiveLock ) ;
myrel = relation_open ( myrelid , AccessExclusiveLock ) ;
/* Now we can delete the pg_attrdef row */
/* Now we can delete the pg_attrdef row */
simple_heap_d elete( attrdef_rel , & tuple - > t_self ) ;
CatalogTupleD elete( attrdef_rel , & tuple - > t_self ) ;
systable_endscan ( scan ) ;
systable_endscan ( scan ) ;
heap_close ( attrdef_rel , RowExclusiveLock ) ;
heap_close ( attrdef_rel , RowExclusiveLock ) ;
@ -1809,7 +1809,7 @@ heap_drop_with_catalog(Oid relid)
if ( ! HeapTupleIsValid ( tuple ) )
if ( ! HeapTupleIsValid ( tuple ) )
elog ( ERROR , " cache lookup failed for foreign table %u " , relid ) ;
elog ( ERROR , " cache lookup failed for foreign table %u " , relid ) ;
simple_heap_d elete( rel , & tuple - > t_self ) ;
CatalogTupleD elete( rel , & tuple - > t_self ) ;
ReleaseSysCache ( tuple ) ;
ReleaseSysCache ( tuple ) ;
heap_close ( rel , RowExclusiveLock ) ;
heap_close ( rel , RowExclusiveLock ) ;
@ -2764,7 +2764,7 @@ RemoveStatistics(Oid relid, AttrNumber attnum)
/* we must loop even when attnum != 0, in case of inherited stats */
/* we must loop even when attnum != 0, in case of inherited stats */
while ( HeapTupleIsValid ( tuple = systable_getnext ( scan ) ) )
while ( HeapTupleIsValid ( tuple = systable_getnext ( scan ) ) )
simple_heap_d elete( pgstatistic , & tuple - > t_self ) ;
CatalogTupleD elete( pgstatistic , & tuple - > t_self ) ;
systable_endscan ( scan ) ;
systable_endscan ( scan ) ;
@ -3196,7 +3196,7 @@ RemovePartitionKeyByRelId(Oid relid)
elog ( ERROR , " cache lookup failed for partition key of relation %u " ,
elog ( ERROR , " cache lookup failed for partition key of relation %u " ,
relid ) ;
relid ) ;
simple_heap_d elete( rel , & tuple - > t_self ) ;
CatalogTupleD elete( rel , & tuple - > t_self ) ;
ReleaseSysCache ( tuple ) ;
ReleaseSysCache ( tuple ) ;
heap_close ( rel , RowExclusiveLock ) ;
heap_close ( rel , RowExclusiveLock ) ;