Re: How can an index be larger than a table - Mailing list pgsql-performance

From Josh Berkus
Subject Re: How can an index be larger than a table
Date
Msg-id 200504211031.51567.josh@agliodbs.com
Whole thread Raw
In response to How can an index be larger than a table  ("David Roussel" <pgsql-performance@diroussel.xsmail.com>)
List pgsql-performance
David,

> What also seems weird to me is that the control table has some unique
> indexes created on it, but the data_upate_events table just has a unique
> constraint.  Will postgres use an index in the background to enforce
> this constraint?

If you somehow have a unique constraint without a unique index, something is
seriously broken.   I suspect hacking of system tables.

Otherwise, it sounds like you have index bloat due to mass deletions.  Run
REINDEX, or, preferably, VACUUM FULL and then REINDEX.

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Index bloat problem?
Next
From: Bill Chandler
Date:
Subject: Re: Index bloat problem?