mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-17 06:05:50 -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue