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

Function getRootTableInfo

src/bin/pg_dump/pg_dump.c:2727–2743  ·  view source on GitHub ↗

* getRootTableInfo: * get the root TableInfo for the given partition table. */

Source from the content-addressed store, hash-verified

2725 * get the root TableInfo for the given partition table.
2726 */
2727static TableInfo *
2728getRootTableInfo(const TableInfo *tbinfo)
2729{
2730 TableInfo *parentTbinfo;
2731
2732 Assert(tbinfo->ispartition);
2733 Assert(tbinfo->numParents == 1);
2734
2735 parentTbinfo = tbinfo->parents[0];
2736 while (parentTbinfo->ispartition)
2737 {
2738 Assert(parentTbinfo->numParents == 1);
2739 parentTbinfo = parentTbinfo->parents[0];
2740 }
2741
2742 return parentTbinfo;
2743}
2744
2745/*
2746 * forcePartitionRootLoad

Callers 2

dumpTableData_insertFunction · 0.85
dumpTableDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected