Add (inherited) to tablespace name when table is using the default tablespace set for the database.

This commit is contained in:
eelke 2018-10-07 20:57:52 +02:00
parent 2a75e86102
commit eefcb8fd51

View file

@ -75,10 +75,14 @@ QString getTablespaceDisplayString(const PgDatabaseCatalog &cat, Oid oid)
if (oid == 0) {
auto dbname = cat.getDBName();
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;
}
}
QString getTypeDisplayString(const PgDatabaseCatalog &cat, Oid oid, int32_t typmod)
{