Re: Database Statistics???

Поиск
Список
Период
Сортировка
Искать
От
Tom Arthurs
Тема
Re: Database Statistics???
Дата
Msg-id
4697B8C7.7030304@jobflash.com
Ответ на
Список
Дерево обсуждения
Database Statistics??? smiley2211 <smiley2211@yahoo.com>
Re: Database Statistics??? Ansgar -59cobalt- Wiechers <lists@planetcobalt.net>
Re: Database Statistics??? Mario Weilguni <mweilguni@sime.com>
Re: Database Statistics??? Tom Arthurs <tarthurs@jobflash.com>
Re: Database Statistics??? smiley2211 <smiley2211@yahoo.com>
Re: Database Statistics??? Alvaro Herrera <alvherre@commandprompt.com>
smiley2211 wrote:
> Hello all,
>
> I am a bit confused...I have a database which was performing very POORLY
> selecting from a view (posted earlier) on one server but extremely fast on
> another server...
>
> I just backed up the database from the FAST server and loaded to the SLOW
> server and it ran just as fast as it originally did...my questions are:
>
> Are STATISTICS some how saved with the database??  if so, how do I UPDATE
> view or update them?
>
> Should I backup the data \ drop the database and reload it to make it get
> new stats?? (vacuum analyze does nothing for this poor performing database)
>
> Thanks-a-bunch.
>   
You can update statistics with the analyze or vacuum analyze command, 
but I'd bet what you are seeing here is the effect of recreating the 
indices that replaying a backup does.
В списке pgsql-performance по дате отправления
От: Alvaro Herrera
Дата:
Сообщение: Re: TRUNCATE TABLE
От: Ansgar -59cobalt- Wiechers
Дата:
Сообщение: Re: Database Statistics???
FAQ