Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A801547695C for ; Wed, 19 Jun 2002 09:29:53 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 04857476B5C for ; Wed, 19 Jun 2002 09:25:51 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5JDPV103753; Wed, 19 Jun 2002 09:25:31 -0400 (EDT) To: Brian McCane Cc: Jean-Christophe ARNU , pgsql-admin@postgresql.org Subject: Re: index keeps on growing In-reply-to: <20020619070147.P95221-100000@fw.mccons.net> References: <20020619070147.P95221-100000@fw.mccons.net> Comments: In-reply-to Brian McCane message dated "Wed, 19 Jun 2002 07:30:40 -0500" Date: Wed, 19 Jun 2002 09:25:31 -0400 Message-ID: <3750.1024493131@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/134 X-Sequence-Number: 4569 Brian McCane writes: > The perl script will allow you to rebuild your indexes (indices?) without > having to kick out all of your users. It reclaims all of the "holes" in > the index files. It does NOT preserve the "primary key" setting for an > index, because as far as I can tell this doesn't actually make any > difference, primary keys are just an UNIQUE index. The primary-key marker does actually make a difference in just one case (AFAIK): when you create a foreign key reference from another table, the primary key serves to identify the default columns to reference. If you drop the marker then subsequent attempts to create referencing columns will have to explicitly identify the referenced columns. regards, tom lane