Re: How can an index be larger than a table

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "David Roussel" <pgsql-performance(at)diroussel(dot)xsmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How can an index be larger than a table
Date: 2005-04-21 17:31:51
Message-ID: 200504211031.51567.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Turner 2005-04-21 17:33:28 Re: Index bloat problem?
Previous Message Josh Berkus 2005-04-21 17:22:03 Re: Index bloat problem?