summaryrefslogtreecommitdiff
path: root/src/backend/catalog/pg_largeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/catalog/pg_largeobject.c')
-rw-r--r--src/backend/catalog/pg_largeobject.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/catalog/pg_largeobject.c b/src/backend/catalog/pg_largeobject.c
index 1d068ca0be..f6384446e3 100644
--- a/src/backend/catalog/pg_largeobject.c
+++ b/src/backend/catalog/pg_largeobject.c
@@ -46,8 +46,8 @@ LargeObjectCreate(Oid loid)
Datum values[Natts_pg_largeobject_metadata];
bool nulls[Natts_pg_largeobject_metadata];
- pg_lo_meta = heap_open(LargeObjectMetadataRelationId,
- RowExclusiveLock);
+ pg_lo_meta = table_open(LargeObjectMetadataRelationId,
+ RowExclusiveLock);
/*
* Insert metadata of the largeobject
@@ -74,7 +74,7 @@ LargeObjectCreate(Oid loid)
heap_freetuple(ntup);
- heap_close(pg_lo_meta, RowExclusiveLock);
+ table_close(pg_lo_meta, RowExclusiveLock);
return loid_new;
}
@@ -92,11 +92,11 @@ LargeObjectDrop(Oid loid)
SysScanDesc scan;
HeapTuple tuple;
- pg_lo_meta = heap_open(LargeObjectMetadataRelationId,
- RowExclusiveLock);
+ pg_lo_meta = table_open(LargeObjectMetadataRelationId,
+ RowExclusiveLock);
- pg_largeobject = heap_open(LargeObjectRelationId,
- RowExclusiveLock);
+ pg_largeobject = table_open(LargeObjectRelationId,
+ RowExclusiveLock);
/*
* Delete an entry from pg_largeobject_metadata
@@ -138,9 +138,9 @@ LargeObjectDrop(Oid loid)
systable_endscan(scan);
- heap_close(pg_largeobject, RowExclusiveLock);
+ table_close(pg_largeobject, RowExclusiveLock);
- heap_close(pg_lo_meta, RowExclusiveLock);
+ table_close(pg_lo_meta, RowExclusiveLock);
}
/*
@@ -169,8 +169,8 @@ LargeObjectExists(Oid loid)
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(loid));
- pg_lo_meta = heap_open(LargeObjectMetadataRelationId,
- AccessShareLock);
+ pg_lo_meta = table_open(LargeObjectMetadataRelationId,
+ AccessShareLock);
sd = systable_beginscan(pg_lo_meta,
LargeObjectMetadataOidIndexId, true,
@@ -182,7 +182,7 @@ LargeObjectExists(Oid loid)
systable_endscan(sd);
- heap_close(pg_lo_meta, AccessShareLock);
+ table_close(pg_lo_meta, AccessShareLock);
return retval;
}