X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6988A475CBC for ; Wed, 7 May 2003 13:21:38 -0400 (EDT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by postgresql.org (Postfix) with ESMTP id ABAE8474E4F for ; Wed, 7 May 2003 13:21:37 -0400 (EDT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 19DSbo-000MoQ-0Y; Wed, 07 May 2003 18:21:37 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id BF71E176AF; Wed, 7 May 2003 18:21:35 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id D222816EC7; Wed, 7 May 2003 18:21:31 +0100 (BST) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: Wei Weng , PostgreSQL-mailinglist Subject: Re: index defragmentation Date: Wed, 7 May 2003 18:21:28 +0100 User-Agent: KMail/1.4.3 References: <3EB938B8.3090905@kencast.com> In-Reply-To: <3EB938B8.3090905@kencast.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200305071821.28761.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Status: No, hits=-38.9 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/139 X-Sequence-Number: 13304 On Wednesday 07 May 2003 5:47 pm, Wei Weng wrote: > Does postgreSQL have some kind of utility to fix/defrag the fragmented > index? Are you familiar with "REINDEX"? I'm not sure I'd describe what it does as= =20 "defragmentation" but it will recreate an index. See the SQL command=20 reference in the manuals for details (or the admin manual I think). --=20 Richard Huxton