pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Monnerie <michael.monnerie@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
Message-ID: <200804170945.51400@zmi.at> (raw)
In-Reply-To: <200804160156.43961@zmi.at>
References: <200804141757.21574@zmi.at>
	<200804160156.43961@zmi.at>

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 
ham/spam from 3 concurrent connections into the db. No problem so far.

But I renamed the old, broken db and tried a 
and got this:
INFO:  »bayes_token«: 20567514 entfernbare, 4752337 nicht entfernbare 
Zeilenversionen in 186274 Seiten gefunden
DETAIL:  0 tote Zeilenversionen können noch nicht entfernt werden.
Nicht entfernbare Zeilenversionen sind zwischen 56 und 56 Bytes lang.
Es gibt 0 unbenutzte Itemzeiger.
Gesamter freier Platz (einschließlich entfernbare Zeilenversionen) ist 
1154820852 Bytes.
33480 Seiten sind leer oder werden leer werden, einschließlich 0 am Ende 
der Tabelle.
186149 Seiten mit 1154819352 freien Bytes sind mögliche Ziele zum 
Verschieben.

It looks like autovacuum - which is on - could not be run, and the db 
growed a lot, and now a VACUUM cannot finish because of the duplicate 
index:
INFO:  Index »bayes_token_pkey« enthält 2539650 Zeilenversionen in 76273 
Seiten
DETAIL:  0 Indexzeilenversionen wurde entfernt.
11727 Indexseiten wurden gelöscht, 11727 sind gegenwärtig 
wiederverwendbar.
CPU 10.44s/2.49u sec elapsed 172.59 sec.
WARNUNG:  Index »bayes_token_pkey« enthält 2539650 Zeilenversionen, aber 
Tabelle enthält 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
-- 
// 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

Attachments:

  signature.asc (application/pgp-signature, 193B) download

view thread (17+ messages)  latest in thread

Message-ID: <200804170945.51400@zmi.at>
Permalink:  ../200804170945.51400@zmi.at/
Also on:    postgresql.org/message-id/200804170945.51400@zmi.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: michael.monnerie@it-management.at
  Subject: Re: duplicate primary index in bayes db from SpamAssassin
  In-Reply-To: <200804170945.51400@zmi.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox