Thread: Data corruption (8.2.5 Windows XP)

Data corruption (8.2.5 Windows XP)

From
regis.boumera@steria.com
Date:
After a crash, some data disappeared in some tables.
Furthermore, there is a table with an INTEGER as primary key. One of its
row is corrupted.
All global requests (no WHERE clause) succeed, but each request with a
WHERE clause on the primary acts like this values does not exist.

Example :

SELECT * FROM t_table t;  =>
id    name        ...
1     myname    ...


SELECT * FROM t_table t WHERE t.id=1;  => no result

Is there a reason for this?
Is there a way to "repair" the database?

Thanks,

------------------------------------------
Régis Bouméra
STERIA
Mail : regis.boumera@steria.com
Tel   : 05 59 84 95 77


Ce message est à l'attention exclusive des destinataires désignés. Il peut contenir des informations confidentielles.
Sivous n'êtes pas destinataire du message, merci d'en avertir immédiatement l'expéditeur et de détruire ce message. Le
contenude ce message ne pourrait engager la responsabilité de Steria que s'il a été émis par une personne dûment
habilitéeagissant dans le strict cadre de ses fonctions et à des fins non étrangères à ses attributions. Bien que les
meilleursefforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune
garantieà cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis.   
This message is intended exclusively for the designated addressee. It may contain confidential material. If you are not
thecorrect addressee, please notify the sender immediately and destroy the message. The content of this message will
engagethe responsibility of Steria only if it has been sent by an authorized person acting in the strict scope of his
functionsand for purposes that are related to his competence. Although reasonable efforts have been made to keep this
transmissionfree from viruses, the sender will not be liable for damages caused by a transmitted virus.   

Re: Data corruption (8.2.5 Windows XP)

From
Alan Hodgson
Date:
On Tuesday 30 June 2009, regis.boumera@steria.com wrote:
> SELECT * FROM t_table t WHERE t.id=1;  => no result
>
> Is there a reason for this?
> Is there a way to "repair" the database?
>

reindex


Re: Data corruption (8.2.5 Windows XP)

From
Marc Schablewski
Date:
regis.boumera@steria.com wrote:
> Is there a reason for this?
> Is there a way to "repair" the database?
>
>
I guess your primary key index got damaged. You could try to REINDEX the
table or DROP and recreate the index manually. Perhaps you should do a
backup of your data directory before reindexing your table, so someone
might be able to find out what happend to your database in the first place.

Marc