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:
parent
d8fc14c823
commit
35813ae926
10 changed files with 152 additions and 17 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "PgTablespaceContainer.h"
|
||||
#include "PgTriggerContainer.h"
|
||||
#include "PgTypeContainer.h"
|
||||
#include "PgProcContainer.h"
|
||||
#include "Pgsql_Connection.h"
|
||||
#include "Pgsql_oids.h"
|
||||
|
||||
|
|
@ -174,6 +175,9 @@ void PgDatabaseCatalog::loadAll(Pgsql::Connection &conn,
|
|||
if (progress_callback && !progress_callback(++n, count))
|
||||
return;
|
||||
load2(m_types, conn);
|
||||
if (progress_callback && !progress_callback(++n, count))
|
||||
return;
|
||||
load2(m_procs, conn);
|
||||
progress_callback && progress_callback(++n, count);
|
||||
|
||||
refreshed(this, All);
|
||||
|
|
@ -280,3 +284,7 @@ std::shared_ptr<const PgTypeContainer> PgDatabaseCatalog::types() const
|
|||
return m_types;
|
||||
}
|
||||
|
||||
std::shared_ptr<const PgProcContainer> PgDatabaseCatalog::procs() const
|
||||
{
|
||||
return m_procs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue