Added pg_proc table to the catalog. Contains the definition of functions.

Also improved the loading code for some catalog tables.
This commit is contained in:
eelke 2018-11-17 19:38:07 +01:00
parent d8fc14c823
commit 35813ae926
10 changed files with 152 additions and 17 deletions

View file

@ -22,10 +22,8 @@ PgClass PgClassContainer::loadElem(const Pgsql::Row &row)
col >> v.oid >> v.name >> v.relnamespace >> v.type >> v.oftype
>> v.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;
col.getAsArray<QString>(std::back_inserter(v.acl), QString());
col.getAsArray<QString>(std::back_inserter(v.options), QString());
>> 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);