Re: DB corrupted ? - Mailing list pgsql-novice

From Tom Lane
Subject Re: DB corrupted ?
Date
Msg-id 26805.1043856577@sss.pgh.pa.us
Whole thread Raw
In response to DB corrupted ?  (eurlix <eurlix@libertysurf.fr>)
Responses Re: DB corrupted repaired  (eurlix <eurlix@libertysurf.fr>)
List pgsql-novice
eurlix <eurlix@libertysurf.fr> writes:
> I use Postgres 7.0 on a mandrake 8.0 and I am really novice
> with Postgres and SQL.

You really, really should update to something newer than 7.0.
The list of bugs we've fixed since then would make your blood run cold.

> If I try :
> select * from cpjo order by joMA, joJNL, joFOL ;
> I obtain :
> ERROR:  cannot open segment 1 of relation cpjo
>  (target block 1346502656): No such file or directory

Is that query using an index?  (Try EXPLAINing the query to find out.)
If so, I'd suggest dropping and recreating that index.  7.0 is far
enough back that I'm not sure REINDEX works real well in it, if it
has it at all.

            regards, tom lane

pgsql-novice by date:

Previous
From: Steve_Miller@sil.org
Date:
Subject: Re: Good books?
Next
From: "paul butler"
Date:
Subject: Re: Good books?