Removed the acl field from several Pg* classes as the acl is now stored in the PgServerObject base class they inherit from.

This commit is contained in:
eelke 2018-12-27 12:05:48 +01:00
parent aaa05f64ef
commit 93687df959
12 changed files with 30 additions and 30 deletions

View file

@ -11,7 +11,7 @@ std::string PgClassContainer::getLoadQuery() const
" relowner, relam, relfilenode, reltablespace, relpages, "
" reltuples, reltoastrelid, relisshared, relpersistence, "
" relkind, relhasoids, relispopulated, relfrozenxid, relminmxid, "
" relacl, reloptions \n"
" reloptions, relacl \n"
"FROM pg_catalog.pg_class";
}
@ -28,12 +28,12 @@ PgClass PgClassContainer::loadElem(const Pgsql::Row &row)
>> owner >> v.am >> v.filenode >> v.tablespace >> v.pages_est
>> v.tuples_est >> v.toastrelid >> v.isshared >> v.persistence
>> v.kind >> v.hasoids >> v.ispopulated >> v.frozenxid >> v.minmxid
>> v.acl >> v.options;
>> v.options;
v.setOwnerOid(owner);
// auto&& ns = m_catalog.namespaces()->getByKey(v.relnamespace);
// if (ns) {
// v.relnamespace_name = ns->objectName();
// v.system_namespace = ns->isSystemCatalog();
// }
AclList acl_list;
col >> acl_list;
v.setAcls(std::move(acl_list));
return v;
}