Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 002DA2E005A for ; Thu, 17 Apr 2008 12:42:54 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 73588-08 for ; Thu, 17 Apr 2008 12:42:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id D656C2E004A for ; Thu, 17 Apr 2008 12:42:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3HFfWw4020474; Thu, 17 Apr 2008 11:41:32 -0400 (EDT) To: Michael Monnerie cc: pgsql-admin@postgresql.org Subject: Re: duplicate primary index in bayes db from SpamAssassin In-reply-to: <200804170945.51400@zmi.at> References: <200804141757.21574@zmi.at> <200804160156.43961@zmi.at> <200804170945.51400@zmi.at> Comments: In-reply-to Michael Monnerie message dated "Thu, 17 Apr 2008 09:45:50 +0200" Date: Thu, 17 Apr 2008 11:41:31 -0400 Message-ID: <20473.1208446891@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/173 X-Sequence-Number: 28937 Michael Monnerie writes: > I'd like to drop that broken db, or should I keep it for analyzation? Looking back over the thread, it seems that the problems you saw could be explained by the VACUUM-related bugs we fixed in 8.1.9 and 8.1.10; although obviously this theory requires assuming that the dups were there before you updated to 8.1.11. You didn't say much about time frame so I don't know if that's plausible. This latest bit with many fewer index entries than table entries is just weird, though. The 8.1.10 VACUUM bug could have led to having *more* index entries than table entries, but not the other way around. Before you zap the database, would you be willing to make the actual database files (not a dump, but the stored files) available? I'd be interested to take a closer look at that index. regards, tom lane