From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian McCane <bmccane@mccons.net>
Cc: Jean-Christophe ARNU <jc.arnu@free.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: index keeps on growing
Date: Wed, 19 Jun 2002 09:25:31 -0400
Message-ID: <3750.1024493131@sss.pgh.pa.us> (raw)
In-Reply-To: <20020619070147.P95221-100000@fw.mccons.net>
References: <20020619070147.P95221-100000@fw.mccons.net>
Brian McCane <bmccane@mccons.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bmccane@mccons.net, jc.arnu@free.fr
Subject: Re: index keeps on growing
In-Reply-To: <3750.1024493131@sss.pgh.pa.us>
References: <20020619070147.P95221-100000@fw.mccons.net> <3750.1024493131@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox