Overview of triggers extended with function name and arguments.

Did a lot of refactoring on the catalog to keep things clean.
This commit is contained in:
eelke 2018-11-18 19:30:45 +01:00
parent 35813ae926
commit fcb191f2cc
44 changed files with 797 additions and 404 deletions

View file

@ -25,9 +25,10 @@ PgClass PgClassContainer::loadElem(const Pgsql::Row &row)
>> v.kind >> v.hasoids >> v.ispopulated >> v.frozenxid >> v.minmxid
>> v.acl >> v.options;
auto cat = m_catalogue.lock();
auto ns = cat->namespaces()->getByKey(v.relnamespace);
v.relnamespace_name = ns.name;
v.system_namespace = ns.isSystemCatalog();
auto&& ns = m_catalog.namespaces()->getByKey(v.relnamespace);
if (ns) {
v.relnamespace_name = ns->name;
v.system_namespace = ns->isSystemCatalog();
}
return v;
}