diff options
| author | Andres Freund | 2019-01-21 18:32:19 +0000 |
|---|---|---|
| committer | Andres Freund | 2019-01-21 18:51:37 +0000 |
| commit | e0c4ec07284db817e1f8d9adfb3fffc952252db0 (patch) | |
| tree | ad56d635b246f6d4d0d7a17b2a4ac797d7227b62 /src/backend/utils/cache/relfilenodemap.c | |
| parent | 111944c5ee567f1c45bf0f1ecfdec682af467aa6 (diff) | |
Replace uses of heap_open et al with the corresponding table_* function.
Author: Andres Freund
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/cache/relfilenodemap.c')
| -rw-r--r-- | src/backend/utils/cache/relfilenodemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/relfilenodemap.c b/src/backend/utils/cache/relfilenodemap.c index b766dbb21c0..c506dc9dec4 100644 --- a/src/backend/utils/cache/relfilenodemap.c +++ b/src/backend/utils/cache/relfilenodemap.c @@ -192,7 +192,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) */ /* check for plain relations by looking in pg_class */ - relation = heap_open(RelationRelationId, AccessShareLock); + relation = table_open(RelationRelationId, AccessShareLock); /* copy scankey to local copy, it will be modified during the scan */ memcpy(skey, relfilenode_skey, sizeof(skey)); @@ -226,7 +226,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) } systable_endscan(scandesc); - heap_close(relation, AccessShareLock); + table_close(relation, AccessShareLock); /* check for tables that are mapped but not shared */ if (!found) |
