Re: [GENERAL] Table corruption and other questions - Mailing list pgsql-general

From Adriaan Joubert
Subject Re: [GENERAL] Table corruption and other questions
Date
Msg-id 38436F12.93D74DC7@albourne.com
Whole thread Raw
In response to Table corruption and other questions  (Miguel Montes <montes@noc.unc.edu.ar>)
List pgsql-general
Miguel Montes wrote:
>     I'm using postgresql 6.5.1 with Linux Mandrake 6.1. I have two cases
> of table corruption related to hardware failure.

If the table itself is really messed up it can be tough to fix.
Sometimes it is possible to do a pg_dump of the table and reload --
otherwise it is a restore from the back-ups.

However, if you have indexes on the table, try dropping them all and
re-building them. I have never actually seen a corrupted table, but
index corruption with Postgres does occur. Also check for inidexes that
you may not have knowingly created, such as *_pkey or *_key ffor
primary_key or unique fields.

Hope this helps and good luck,

Adriaan

pgsql-general by date:

Previous
From: Bradford Hovinen
Date:
Subject: SQL error in PostgreSQL 6.5.3
Next
From: Jesse Scott
Date:
Subject: Sorting a table...