diff options
author | Andres Freund <andres@anarazel.de> | 2019-01-21 10:32:19 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-01-21 10:51:37 -0800 |
commit | e0c4ec07284db817e1f8d9adfb3fffc952252db0 (patch) | |
tree | ad56d635b246f6d4d0d7a17b2a4ac797d7227b62 /src/backend/replication/logical/tablesync.c | |
parent | 111944c5ee567f1c45bf0f1ecfdec682af467aa6 (diff) |
Replace uses of heap_open et al with the corresponding table_* function.
Author: Andres Freund
Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
Diffstat (limited to 'src/backend/replication/logical/tablesync.c')
-rw-r--r-- | src/backend/replication/logical/tablesync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c index 20ab1122064..28f5fc23aac 100644 --- a/src/backend/replication/logical/tablesync.c +++ b/src/backend/replication/logical/tablesync.c @@ -877,7 +877,7 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos) * working and it has to open the relation in RowExclusiveLock * when remapping remote relation id to local one. */ - rel = heap_open(MyLogicalRepWorker->relid, RowExclusiveLock); + rel = table_open(MyLogicalRepWorker->relid, RowExclusiveLock); /* * Create a temporary slot for the sync process. We do this @@ -915,7 +915,7 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos) errdetail("The error was: %s", res->err))); walrcv_clear_result(res); - heap_close(rel, NoLock); + table_close(rel, NoLock); /* Make the copy visible. */ CommandCounterIncrement(); |