Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id C5AEE477153 for ; Wed, 19 Jun 2002 11:01:50 -0400 (EDT) Received: from fw.mccons.net (adsl-65-64-105-41.dsl.kscymo.swbell.net [65.64.105.41]) by postgresql.org (Postfix) with ESMTP id EFE6F476DE4 for ; Wed, 19 Jun 2002 10:37:18 -0400 (EDT) Received: (from root@localhost) by fw.mccons.net (8.11.3/8.11.4) id g5JEbNF31077; Wed, 19 Jun 2002 09:37:23 -0500 (CDT) (envelope-from bmccane@mccons.net) Received: from localhost (localhost [127.0.0.1]) by fw.mccons.net (8.11.3/8.11.4av) with ESMTP id g5JEb8w31068; Wed, 19 Jun 2002 09:37:08 -0500 (CDT) (envelope-from bmccane@mccons.net) Date: Wed, 19 Jun 2002 09:37:06 -0500 (CDT) From: Brian McCane To: Tom Lane Cc: Jean-Christophe ARNU , Subject: Re: index keeps on growing In-Reply-To: <3750.1024493131@sss.pgh.pa.us> Message-ID: <20020619093539.M29552-100000@fw.mccons.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 X-Razor-Spam-ID: 82051580a1b2e2a486c58c412c6ba1e5509ea0d9 X-Archive-Number: 200206/138 X-Sequence-Number: 4572 Okay, thanks for that information. I will have to dig through my pgsql-admin archive here and find the code for setting the primary key flag. Unless of course someone would like to offer me the information *HINT* :). After I get the information, I will make the appropriate changes to my script and place them up on the ftp server. - brian On Wed, 19 Jun 2002, Tom Lane wrote: > > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > Wm. Brian McCane | Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open when you don't want them to. Auction http://www.sellit-here.com/ | - Roger Zelazny "Blood of Amber"