To recover data corrupted - Mailing list pgsql-general

From Frederic Massot
Subject To recover data corrupted
Date
Msg-id e4uq5m$t33$1@floppy.pyrenet.fr
Whole thread Raw
Responses Re: To recover data corrupted
List pgsql-general
Hi,

We have an old waiter Postgresql 6.5.3 which regularly had problem and
which crashed.

I recovered a large part of the data saved with pg_dump, except that
which were corrupted.

In the directory "/var/lib/postgres/data/base", I found the files which
correspond to the tables corrupted. With a text editor, I can edit these
binary files.

There are the texts and many nonprintable characters :

Ø^@ì^@^@ ^@
<94><9F>Ø^@,<9F>Ð^@Ž<9E>ð^@ì<94>è^Et<93>ð^B<<91>p^Dô<8F><90>^Bä<8C>
^F<9C><83> ^DŽ<88>\<87>°^Bì<85>à^B<80><99>Ð
^A°<98> ^<9E>X^Aà<97> ^AL<9D>x^Ah<9A>p^Dì<80>`^EÌ
^@^@ <9C>X^A4^B^@^@
^A^@^@^L^T^@^@l^S^@^@Œ^R^@^@^L^R^@^@\^Q^@^@¬^P^@^@ü^O^@^@<8C>^O^@^@^L^O^@^@|^N^@^@Ü^M^@^@,^M^@^@|^L^@^@È
^K^@^@^P^K^@^@T
^@^@<94>
^@^@^@^@^@^@x^G^@^@Œ^F^@^@ü^E^@^@<^E^@^@|^D^@^@Œ^C^@^@ü^B^@^@<^B^@^@<80>^]^@^@^L^A^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@À^@<9B>^@éŒW^A^@^@^@^@<86>UW^A%TÅ^A^@^@
^@^K^@^O^@^B<85> ^@<8C>^@^@^@^\^@^@^@^V^@^@^@Mr et Mme Perro
nno^@^@x^@^@^@Dans une maison indépendante, située dans un quartier
résidentiel, à 800 mètres des commerces et à 13 Km des
plages.ª^A^@^@<br>Appréciation de l'Office de Tourisme : *<br><br>
1 chambre en rez-de-chaussée avec 1 lit 2 personnes avec entrée
indépendante (possibilité couchage 1 personne supplémentaire
). Salle d'eau et WC<br>
Ouvert toute l'année<br>


Do you know how I can recover the data without having to make copy/paste
  from the binary file?

Regards.
--
==============================================
|              FREDERIC MASSOT               |
|     http://www.juliana-multimedia.com      |
|   mailto:frederic@juliana-multimedia.com   |
===========================Debian=GNU/Linux===

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Why won't it index scan?
Next
From: Kenneth Downs
Date:
Subject: More confirmation: pgadmin3 freezeup fixed by wxgtk 2.6.3