Re: Question on REINDEX - Mailing list pgsql-performance

From Tom Lane
Subject Re: Question on REINDEX
Date
Msg-id 23413.1113935675@sss.pgh.pa.us
Whole thread Raw
In response to Re: Question on REINDEX  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Question on REINDEX
Next
From: Josh Berkus
Date:
Subject: Bad n_distinct estimation; hacks suggested?