When a table has partitions or inheritance children these are listed as subnodes. A subnode can appear multiple times under different parents as postgresql supports inheriting multiple tables. The sizes are still missing and maybe some things I have note verified yet are not correct.
20 lines
350 B
C++
20 lines
350 B
C++
#include "TableNode.h"
|
|
#include "catalog/PgDatabaseCatalog.h"
|
|
namespace {
|
|
PgDatabaseCatalog dummyCatalog;
|
|
}
|
|
|
|
TableNode::TableNode()
|
|
: _class(dummyCatalog, InvalidOid, "", InvalidOid)
|
|
{
|
|
|
|
}
|
|
|
|
TableNode::TableNode(const PgClass &cls)
|
|
: _class(cls)
|
|
{}
|
|
|
|
const TableNode *TableNode::getChildPtr(int index) const
|
|
{
|
|
return children.at(index).get();
|
|
}
|