mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-09-04 14:14:56 -06:00
Add pgpro_scheduler
This commit is contained in:
parent
c0e6e4d078
commit
b0afa4ead2
12 changed files with 356 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include "schema/pgRole.h"
|
||||
#include "schema/gpResQueue.h"
|
||||
#include "agent/pgaJob.h"
|
||||
#include "pro_scheduler/pgproJob.h"
|
||||
#include "utils/utffile.h"
|
||||
#include "utils/pgfeatures.h"
|
||||
#include "utils/registry.h"
|
||||
|
|
@ -1130,6 +1131,16 @@ void pgServer::ShowTreeDetail(ctlTree *browser, frmMain *form, ctlListView *prop
|
|||
browser->AppendCollection(this, jobFactory);
|
||||
}
|
||||
}
|
||||
if (settings->GetDisplayOption(_("pgpro_scheduler")))
|
||||
{
|
||||
wxString exists = conn->ExecuteScalar(
|
||||
wxT("select true ok from pg_extension where extname='pgpro_scheduler'\n"));
|
||||
|
||||
if (!exists.IsNull())
|
||||
{
|
||||
browser->AppendCollection(this, projobFactory);
|
||||
}
|
||||
}
|
||||
|
||||
if (conn->BackendMinimumVersion(8, 1))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue