Re: Question on REINDEX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question on REINDEX
Дата
Msg-id 23413.1113935675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question on REINDEX  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-performance
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> Am I right in thinking that vacuum does at least two passes: one
> front-to-back to find removable tuples, and other back-to-front for
> movement?

VACUUM FULL, yes.  VACUUM only does the first one.

> I know maintenance_work_mem is used for storing TIDs of to-be-moved
> tuples for index cleanup ... how does it relate to the above?

TIDs of to-be-deleted tuples, actually.  Movable tuples aren't stored,
they're just found on-the-fly during the back-to-front pass.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Question on REINDEX
Следующее
От: Josh Berkus
Дата:
Сообщение: Bad n_distinct estimation; hacks suggested?