mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +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:
@ -1423,7 +1423,7 @@ ExecGetTriggerResultRel(EState *estate, Oid relid)
|
||||
* event got queued, so we need take no new lock here. Also, we need not
|
||||
* recheck the relkind, so no need for CheckValidResultRel.
|
||||
*/
|
||||
rel = heap_open(relid, NoLock);
|
||||
rel = table_open(relid, NoLock);
|
||||
|
||||
/*
|
||||
* Make the new entry in the right context.
|
||||
@ -1472,7 +1472,7 @@ ExecCleanUpTriggerState(EState *estate)
|
||||
*/
|
||||
Assert(resultRelInfo->ri_NumIndices == 0);
|
||||
|
||||
heap_close(resultRelInfo->ri_RelationDesc, NoLock);
|
||||
table_close(resultRelInfo->ri_RelationDesc, NoLock);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1578,7 +1578,7 @@ ExecEndPlan(PlanState *planstate, EState *estate)
|
||||
for (i = 0; i < num_relations; i++)
|
||||
{
|
||||
if (estate->es_relations[i])
|
||||
heap_close(estate->es_relations[i], NoLock);
|
||||
table_close(estate->es_relations[i], NoLock);
|
||||
}
|
||||
|
||||
/* likewise close any trigger target relations */
|
||||
|
Reference in New Issue
Block a user