MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecCloseRangeTableRelations

Function ExecCloseRangeTableRelations

src/backend/executor/execMain.c:2682–2692  ·  view source on GitHub ↗

* Close all relations opened by ExecGetRangeTableRelation(). * * We do not release any locks we might hold on those rels. */

Source from the content-addressed store, hash-verified

2680 * We do not release any locks we might hold on those rels.
2681 */
2682void
2683ExecCloseRangeTableRelations(EState *estate)
2684{
2685 int i;
2686
2687 for (i = 0; i < estate->es_range_table_size; i++)
2688 {
2689 if (estate->es_relations[i])
2690 table_close(estate->es_relations[i], NoLock);
2691 }
2692}
2693
2694/* ----------------------------------------------------------------
2695 * ExecutePlan

Callers 3

CopyFromDirectoryTableFunction · 0.85
CopyFromFunction · 0.85
ExecEndPlanFunction · 0.85

Calls 1

table_closeFunction · 0.85

Tested by

no test coverage detected