Re: difference in query plan when db is restored

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: difference in query plan when db is restored
Дата
Msg-id 1326.1337284712@sss.pgh.pa.us
обсуждение исходный текст
Ответ на difference in query plan when db is restored  ("John Watts" <jwatts@promotion-update.com>)
Ответы Re: difference in query plan when db is restored  ("John Watts" <jwatts@promotion-update.com>)
Список pgsql-general
"John Watts" <jwatts@promotion-update.com> writes:
> I have a database query which executes normal (under 1s) with 21 steps
> according to the query paln. However, when the database is dumped and
> restored on the _same_ PostgreSQL server, the query plan takes 34 steps
> to complete and it executes in excess of 90 seconds!

Usually you need to ANALYZE after restoring from a dump ...

            regards, tom lane

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

Предыдущее
От: "John Watts"
Дата:
Сообщение: difference in query plan when db is restored
Следующее
От: "John Watts"
Дата:
Сообщение: Re: difference in query plan when db is restored