mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Non-superusers are allowed to use the functions pg_conf_load_time,pg_postmaster_start_time
Отключены проверки на суперпользователя для некоторых функций.
This commit is contained in:
parent
a84104705d
commit
bebc9bee52
1 changed files with 2 additions and 2 deletions
|
|
@ -892,7 +892,7 @@ int pgServer::Connect(frmMain *form, bool askPassword, const wxString &pwd, bool
|
|||
if (conn->BackendMinimumVersion(8, 1))
|
||||
{
|
||||
hasUptime = true;
|
||||
sql += wxT(", CASE WHEN usesuper THEN pg_postmaster_start_time() ELSE NULL END as upsince");
|
||||
sql += wxT(", pg_postmaster_start_time() as upsince");
|
||||
}
|
||||
else if (conn->HasFeature(FEATURE_POSTMASTER_STARTTIME))
|
||||
{
|
||||
|
|
@ -901,7 +901,7 @@ int pgServer::Connect(frmMain *form, bool askPassword, const wxString &pwd, bool
|
|||
}
|
||||
if (conn->BackendMinimumVersion(8, 4))
|
||||
{
|
||||
sql += wxT(", CASE WHEN usesuper THEN pg_conf_load_time() ELSE NULL END as confloadedsince");
|
||||
sql += wxT(", pg_conf_load_time() as confloadedsince");
|
||||
}
|
||||
if (conn->BackendMinimumVersion(8, 5))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue