Re: pg_dump -Are statistics saved?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: pg_dump -Are statistics saved?
Дата
Msg-id 1bb4707116e574187d2c5c445ddf656663858303.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: pg_dump -Are statistics saved?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Mon, 2023-11-27 at 19:45 -0500, Tom Lane wrote:
> Murthy Nunna <mnunna@fnal.gov> writes:
>
>
> > If not, is it necessary to run ANALYZE after pg_restore?
>
> That has always been necessary after a dump/restore, and still is.
> The pg_dump man page makes this clear enough, I should think:
>
>     The dump file produced by pg_dump does not contain the statistics used
>     by the optimizer to make query planning decisions. Therefore, it is
>     wise to run ANALYZE after restoring from a dump file to ensure optimal
>     performance; see Section 25.1.3 and Section 25.1.6 for more
>     information.

If you are not pressed for time, you can wait until autovacuum gets around
to calculating the statistics automatically.

Yours,
Laurenz Albe



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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: idle in transaction
Следующее
От: ROHIT SACHDEVA
Дата:
Сообщение: Related to Foreign Table Accessing