analyze after a database restore?

Поиск
Список
Период
Сортировка
От mlw
Тема analyze after a database restore?
Дата
Msg-id 3E5E4A90.1020605@mohawksoft.com
обсуждение исходный текст
Ответы Re: analyze after a database restore?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: analyze after a database restore?  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers
I just dumped and restored a rather large database, I upgraded from 
7.2.x to 7.3.x. When I went to test my application against the new 
database, it was dog slow. It had all the indexes, and looked fine.

Then it dawned on me, Doh! ANALYZE!

Should pg_dump appened an ANALYZE for each table?

On small tables, this shouldn't take too long. On large tables, you're 
gonna have to do it anyway. I guess it could be an option as well.

It just seems like on of the tasks that is required for a "restored" 
database to work properly, and as such, should probably be specified in 
the backup procedure.





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Free-space-map management thoughts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Free-space-map management thoughts