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

@ -41,14 +41,9 @@ PgConstraint PgConstraintContainer::loadElem(const Pgsql::Row &row)
col >> v.oid >> v.name >> v.connamespace >> v.type >> v.deferrable
>> v.deferred >> v.validated >> v.relid >> v.typid >> v.indid
>> v.frelid >> v.fupdtype >> v.fdeltype >> v.fmatchtype
>> v.islocal >> v.inhcount >> v.noinherit;
col.getAsArray<int16_t>(std::back_inserter(v.key), NullHandling::Ignore);
col.getAsArray<int16_t>(std::back_inserter(v.fkey), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.pfeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.ppeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.ffeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.exclop), NullHandling::Ignore);
col >> v.bin >> v.src >> v.definition;
>> v.islocal >> v.inhcount >> v.noinherit
>> v.key >> v.fkey >> v.pfeqop >> v.ppeqop >> v.ffeqop >> v.exclop
>> v.bin >> v.src >> v.definition;
return v;
}