mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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
This commit is contained in:
@ -1616,7 +1616,7 @@ postgresPlanForeignModify(PlannerInfo *root,
|
||||
* Core code already has some lock on each rel being planned, so we can
|
||||
* use NoLock here.
|
||||
*/
|
||||
rel = heap_open(rte->relid, NoLock);
|
||||
rel = table_open(rte->relid, NoLock);
|
||||
|
||||
/*
|
||||
* In an INSERT, we transmit all columns that are defined in the foreign
|
||||
@ -1706,7 +1706,7 @@ postgresPlanForeignModify(PlannerInfo *root,
|
||||
break;
|
||||
}
|
||||
|
||||
heap_close(rel, NoLock);
|
||||
table_close(rel, NoLock);
|
||||
|
||||
/*
|
||||
* Build the fdw_private list that will be available to the executor.
|
||||
@ -2121,7 +2121,7 @@ postgresPlanDirectModify(PlannerInfo *root,
|
||||
* Core code already has some lock on each rel being planned, so we can
|
||||
* use NoLock here.
|
||||
*/
|
||||
rel = heap_open(rte->relid, NoLock);
|
||||
rel = table_open(rte->relid, NoLock);
|
||||
|
||||
/*
|
||||
* Recall the qual clauses that must be evaluated remotely. (These are
|
||||
@ -2207,7 +2207,7 @@ postgresPlanDirectModify(PlannerInfo *root,
|
||||
rebuild_fdw_scan_tlist(fscan, returningList);
|
||||
}
|
||||
|
||||
heap_close(rel, NoLock);
|
||||
table_close(rel, NoLock);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user