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.
13 lines
181 B
C++
13 lines
181 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
class TableSize {
|
|
public:
|
|
int oid;
|
|
int64_t totalBytes = -1;
|
|
int64_t indexBytes = -1;
|
|
int64_t toastBytes = -1;
|
|
|
|
TableSize();
|
|
};
|