Re: analyze after a database restore?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: analyze after a database restore?
Дата
Msg-id 13176.1046368542@sss.pgh.pa.us
обсуждение исходный текст
Ответ на analyze after a database restore?  (mlw <pgsql@mohawksoft.com>)
Список pgsql-hackers
mlw <pgsql@mohawksoft.com> writes:
> Should pg_dump appened an ANALYZE for each table?

A single ANALYZE at the end of the script would be sufficient.  I'm not
sure that pg_dump should do this automatically though.  If you're not
done restoring then it's mostly a waste of cycles, and how is pg_dump to
know that?

I do note that the docs are rather stingy with this important bit of
knowhow :-(  Neither of the obvious places that I looked in (pg_dump
reference page and admin guide's backup/restore chapter) mention the
need to issue an ANALYZE after completing a restore.  I'm pretty sure it
is mentioned *somewhere* ;-) ... but it needs to be more prominent.
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Can pessimistic locking be emulated?
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: analyze after a database restore?