Re: Concurrent VACUUM and ANALYZE

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: Concurrent VACUUM and ANALYZE
Дата
Msg-id 36e682920807211829i4775e91cx132ce809e074e3d5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Concurrent VACUUM and ANALYZE  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On Mon, Jul 21, 2008 at 6:15 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> This means that VACUUM ANALYZE must grab both locks ... is there a
> gotcha here?

Agreed.

> The main problem I see with this idea is that the dead and total tuple
> count computed by ANALYZE would be immediately out of date, and if it
> happens to finish after VACUUM then it'll overwrite the values the
> latter just wrote, which are more correct.  Not sure how serious a
> problem this is.

Agreed, but in the worst case, it's no different than running ANALYZE
immediately following a VACUUM.

-Jonah


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Concurrent VACUUM and ANALYZE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [patch] plproxy v2