The table inheritance works mostly
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.
This commit is contained in:
parent
ccd88d0578
commit
39dbab4d36
17 changed files with 452 additions and 127 deletions
25
pglablib/ui/catalog/tables/TableNode.h
Normal file
25
pglablib/ui/catalog/tables/TableNode.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "TableSize.h"
|
||||
#include "catalog/PgClass.h"
|
||||
|
||||
class TableNode;
|
||||
using t_Tables = std::vector<std::shared_ptr<TableNode>>;
|
||||
|
||||
|
||||
|
||||
|
||||
class TableNode {
|
||||
public:
|
||||
PgClass _class;
|
||||
TableSize sizes;
|
||||
|
||||
int myIndex;
|
||||
std::weak_ptr<TableNode> parent; // hope we do not need it (must be weak to prevent circular reference)
|
||||
t_Tables children;
|
||||
|
||||
TableNode();
|
||||
TableNode(const PgClass &cls);
|
||||
|
||||
const TableNode* getChildPtr(int index) const;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue