mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
show colour rows statistics page
Строки в статистике по таблицам подсвечиваются, если по таблицам нет статистики оптимизатора. Поле о числе строк в таблице перенесоно ближе к началу.
This commit is contained in:
parent
df636ac670
commit
dc3408cf42
3 changed files with 11 additions and 4 deletions
|
|
@ -248,13 +248,13 @@ void pgObject::ShowStatisticsTables(frmMain* form, ctlListView* statistics, pgOb
|
|||
if (hasSize)
|
||||
statistics->AddColumn(_("Size"), wxLIST_AUTOSIZE);
|
||||
if (obj->GetConnection()->GetIsPgProEnt()) statistics->AddColumn(_("CFS %"), wxLIST_AUTOSIZE);
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
statistics->AddColumn(_("Tuples inserted"));
|
||||
statistics->AddColumn(_("Tuples updated"));
|
||||
statistics->AddColumn(_("Tuples deleted"));
|
||||
if (obj->GetConnection()->BackendMinimumVersion(8, 3))
|
||||
{
|
||||
statistics->AddColumn(_("Tuples HOT updated"));
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
statistics->AddColumn(_("Dead tuples"));
|
||||
}
|
||||
if (obj->GetConnection()->BackendMinimumVersion(8, 2))
|
||||
|
|
@ -322,6 +322,8 @@ void pgObject::ShowStatisticsTables(frmMain* form, ctlListView* statistics, pgOb
|
|||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autovacuum")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_analyze")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autoanalyze")));
|
||||
if (stats->GetVal(wxT("last_analyze")).IsEmpty() && stats->GetVal(wxT("last_autoanalyze")).IsEmpty())
|
||||
statistics->SetItemBackgroundColour(pos, wxColour(wxT("#EEAAAA")));
|
||||
}
|
||||
if (obj->GetConnection()->BackendMinimumVersion(9, 1))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -109,13 +109,13 @@ void pgPartitionCollection::ShowStatistics(frmMain *form, ctlListView *statistic
|
|||
if (hasSize)
|
||||
statistics->AddColumn(_("Size"));
|
||||
if (GetConnection()->GetIsPgProEnt()) statistics->AddColumn(_("CFS %"));
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
statistics->AddColumn(_("Tuples inserted"));
|
||||
statistics->AddColumn(_("Tuples updated"));
|
||||
statistics->AddColumn(_("Tuples deleted"));
|
||||
if (GetConnection()->BackendMinimumVersion(8, 3))
|
||||
{
|
||||
statistics->AddColumn(_("Tuples HOT updated"));
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
statistics->AddColumn(_("Dead tuples"));
|
||||
}
|
||||
if (GetConnection()->BackendMinimumVersion(8, 2))
|
||||
|
|
@ -179,6 +179,9 @@ void pgPartitionCollection::ShowStatistics(frmMain *form, ctlListView *statistic
|
|||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autovacuum")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_analyze")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autoanalyze")));
|
||||
if (stats->GetVal(wxT("last_analyze")).IsEmpty() && stats->GetVal(wxT("last_autoanalyze")).IsEmpty())
|
||||
statistics->SetItemBackgroundColour(pos, wxColour(wxT("#FF8028")));
|
||||
|
||||
}
|
||||
if (GetConnection()->BackendMinimumVersion(9, 1))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1302,7 +1302,8 @@ void pgTableCollection::ShowStatistics(frmMain *form, ctlListView *statistics)
|
|||
if (hasSize)
|
||||
statistics->AddColumn(_("Size"), 50);
|
||||
if (GetConnection()->GetIsPgProEnt()) statistics->AddColumn(_("CFS %"));
|
||||
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
|
||||
|
||||
statistics->AddColumn(_("Tuples inserted"));
|
||||
statistics->AddColumn(_("Tuples updated"));
|
||||
|
|
@ -1310,7 +1311,6 @@ void pgTableCollection::ShowStatistics(frmMain *form, ctlListView *statistics)
|
|||
if (GetConnection()->BackendMinimumVersion(8, 3))
|
||||
{
|
||||
statistics->AddColumn(_("Tuples HOT updated"));
|
||||
statistics->AddColumn(_("Live tuples"));
|
||||
statistics->AddColumn(_("Dead tuples"));
|
||||
}
|
||||
if (GetConnection()->BackendMinimumVersion(8, 2))
|
||||
|
|
@ -1374,6 +1374,8 @@ void pgTableCollection::ShowStatistics(frmMain *form, ctlListView *statistics)
|
|||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autovacuum")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_analyze")));
|
||||
statistics->SetItem(pos, i++, stats->GetVal(wxT("last_autoanalyze")));
|
||||
if (stats->GetVal(wxT("last_analyze")).IsEmpty()&& stats->GetVal(wxT("last_autoanalyze")).IsEmpty())
|
||||
statistics->SetItemBackgroundColour(pos, wxColour(wxT("#FF8028")));
|
||||
}
|
||||
if (GetConnection()->BackendMinimumVersion(9, 1))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue