X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E50FD537C7 for ; Tue, 19 Apr 2005 15:34:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28465-01 for ; Tue, 19 Apr 2005 18:34:46 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 89308537C6 for ; Tue, 19 Apr 2005 15:34:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3JIYZ82023414; Tue, 19 Apr 2005 14:34:35 -0400 (EDT) To: Alvaro Herrera Cc: Tambet Matiisen , josh@agliodbs.com, Bill Chandler , pgsql-perform Subject: Re: Question on REINDEX In-reply-to: <20050419182826.GA18949@dcc.uchile.cl> References: <21097.1113919600@sss.pgh.pa.us> <20050419182826.GA18949@dcc.uchile.cl> Comments: In-reply-to Alvaro Herrera message dated "Tue, 19 Apr 2005 14:28:26 -0400" Date: Tue, 19 Apr 2005 14:34:35 -0400 Message-ID: <23413.1113935675@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/464 X-Sequence-Number: 11861 Alvaro Herrera 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