Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 1F4C22E004A for ; Thu, 17 Apr 2008 04:45:59 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 73686-04 for ; Thu, 17 Apr 2008 04:45:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mailsrv1.zmi.at (mailsrv1.zmi.at [212.69.162.198]) by developer.postgresql.org (Postfix) with ESMTP id 984192E002D for ; Thu, 17 Apr 2008 04:45:55 -0300 (ADT) Received: from mailsrv.i.zmi.at (h081217054243.dyn.cm.kabsi.at [81.217.54.243]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailsrv.i.zmi.at", Issuer "mailsrv.i.zmi.at" (not verified)) by mailsrv1.zmi.at (Postfix) with ESMTP id B75E0BEF for ; Thu, 17 Apr 2008 09:45:52 +0200 (CEST) Received: from saturn.i.zmi.at (saturn.i.zmi.at [10.0.0.2]) by mailsrv.i.zmi.at (Postfix) with ESMTP id 5F77ABFCE for ; Thu, 17 Apr 2008 09:45:11 +0200 (CEST) From: Michael Monnerie Organization: it-management http://it-management.at To: pgsql-admin@postgresql.org Subject: Re: duplicate primary index in bayes db from SpamAssassin Date: Thu, 17 Apr 2008 09:45:50 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200804141757.21574@zmi.at> <200804160156.43961@zmi.at> In-Reply-To: <200804160156.43961@zmi.at> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart71089827.4eRB2LC9p7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200804170945.51400@zmi.at> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.016 tagged_above=0 required=5 tests=AWL=0.016 X-Spam-Level: X-Archive-Number: 200804/167 X-Sequence-Number: 28931 --nextPart71089827.4eRB2LC9p7 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mittwoch, 16. April 2008 Michael Monnerie wrote: > problem with duplicate primary index entries... I created the bayes db fresh, named it bayes_pg_v2 and re-relearned all=20 ham/spam from 3 concurrent connections into the db. No problem so far. But I renamed the old, broken db and tried a=20 and got this: INFO: =BBbayes_token=AB: 20567514 entfernbare, 4752337 nicht entfernbare=20 Zeilenversionen in 186274 Seiten gefunden DETAIL: 0 tote Zeilenversionen k=F6nnen noch nicht entfernt werden. Nicht entfernbare Zeilenversionen sind zwischen 56 und 56 Bytes lang. Es gibt 0 unbenutzte Itemzeiger. Gesamter freier Platz (einschlie=DFlich entfernbare Zeilenversionen) ist=20 1154820852 Bytes. 33480 Seiten sind leer oder werden leer werden, einschlie=DFlich 0 am Ende= =20 der Tabelle. 186149 Seiten mit 1154819352 freien Bytes sind m=F6gliche Ziele zum=20 Verschieben. It looks like autovacuum - which is on - could not be run, and the db=20 growed a lot, and now a VACUUM cannot finish because of the duplicate=20 index: INFO: Index =BBbayes_token_pkey=AB enth=E4lt 2539650 Zeilenversionen in 76= 273=20 Seiten DETAIL: 0 Indexzeilenversionen wurde entfernt. 11727 Indexseiten wurden gel=F6scht, 11727 sind gegenw=E4rtig=20 wiederverwendbar. CPU 10.44s/2.49u sec elapsed 172.59 sec. WARNUNG: Index =BBbayes_token_pkey=AB enth=E4lt 2539650 Zeilenversionen, a= ber=20 Tabelle enth=E4lt 4752337 Zeilenversionen TIP: Bauen Sie den Index mit REINDEX neu. But REINDEX doesn't work of course, because of the duplicates... I'd like to drop that broken db, or should I keep it for analyzation? mfg zmi =2D-=20 // Michael Monnerie, Ing.BSc ----- http://it-management.at // Tel: 0676/846 914 666 .network.your.ideas. // PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import" // Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4 // Keyserver: www.keyserver.net Key-ID: 1C1209B4 --nextPart71089827.4eRB2LC9p7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBIBwAvzhSR9xwSCbQRAq4uAKCSqqoN/HP0URn5CUeMHaqGqu8OJACgtvxU QkHAepyFbTa3K31HbPxrIBs= =4Jcp -----END PGP SIGNATURE----- --nextPart71089827.4eRB2LC9p7--