Add (inherited) to tablespace name when table is using the default tablespace set for the database.
This commit is contained in:
parent
2a75e86102
commit
eefcb8fd51
1 changed files with 6 additions and 2 deletions
|
|
@ -75,9 +75,13 @@ QString getTablespaceDisplayString(const PgDatabaseCatalog &cat, Oid oid)
|
||||||
if (oid == 0) {
|
if (oid == 0) {
|
||||||
auto dbname = cat.getDBName();
|
auto dbname = cat.getDBName();
|
||||||
oid = cat.databases()->getByName(dbname).tablespace;
|
oid = cat.databases()->getByName(dbname).tablespace;
|
||||||
|
auto ts = cat.tablespaces()->getByKey(oid);
|
||||||
|
return ts.name + " (inherited)";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
auto ts = cat.tablespaces()->getByKey(oid);
|
||||||
|
return ts.name;
|
||||||
}
|
}
|
||||||
auto ts = cat.tablespaces()->getByKey(oid);
|
|
||||||
return ts.name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString getTypeDisplayString(const PgDatabaseCatalog &cat, Oid oid, int32_t typmod)
|
QString getTypeDisplayString(const PgDatabaseCatalog &cat, Oid oid, int32_t typmod)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue