lazy load the database sizes only when needed by the server inspector.

This commit is contained in:
eelke 2022-01-19 19:10:05 +01:00
parent 39195153cd
commit b5a706a2a2
10 changed files with 165 additions and 70 deletions

View file

@ -60,12 +60,12 @@ private:
: oid(0)
{}
};
using TableSizes = std::vector<class TableSize>;
using TableSizes = std::vector<TableSize>;
class Table {
public:
PgClass _class;
class TableSize sizes;
TableSize sizes;
Table(const PgClass &cls)
: _class(cls)