X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E4CFADAD6C for ; Tue, 25 Oct 2005 11:27:08 -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 59255-07 for ; Tue, 25 Oct 2005 14:27:03 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2222BDAD49 for ; Tue, 25 Oct 2005 11:27:04 -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 j9PER8KK013828; Tue, 25 Oct 2005 10:27:09 -0400 (EDT) To: markus@m-bass.com Cc: pgsql-performance@postgresql.org Subject: Re: Reindex - Is this necessary after a vacuum? In-reply-to: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com> References: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com> Comments: In-reply-to Markus Benne message dated "Tue, 25 Oct 2005 06:56:07 -0700" Date: Tue, 25 Oct 2005 10:27:08 -0400 Message-ID: <13827.1130250428@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/364 X-Sequence-Number: 15132 Markus Benne writes: > Our table in question is vacuumed every 4 minutes, and > we are reindexing after each one. That's pretty silly. You might need a reindex once in awhile, but not every time you vacuum. The draft 8.1 docs contain some discussion of possible reasons for periodic reindexing: http://developer.postgresql.org/docs/postgres/routine-reindex.html but none of these reasons justify once-per-vacuum reindexes. regards, tom lane