X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D06FA53DC3 for ; Thu, 21 Apr 2005 14:32:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45451-03 for ; Thu, 21 Apr 2005 17:32:12 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 4A63B53990 for ; Thu, 21 Apr 2005 14:32:11 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7263550; Thu, 21 Apr 2005 10:34:10 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: "David Roussel" Subject: Re: How can an index be larger than a table Date: Thu, 21 Apr 2005 10:31:51 -0700 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: <1114078390.26441.232391808@webmail.messagingengine.com> In-Reply-To: <1114078390.26441.232391808@webmail.messagingengine.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200504211031.51567.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/575 X-Sequence-Number: 11972 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. =A0Will postgres use an index in the background to enforce > this constraint? If you somehow have a unique constraint without a unique index, something i= s=20 seriously broken. I suspect hacking of system tables. Otherwise, it sounds like you have index bloat due to mass deletions. Run= =20 REINDEX, or, preferably, VACUUM FULL and then REINDEX. =2D-=20 Josh Berkus Aglio Database Solutions San Francisco