Re: [GENERAL] Recover corrupted data - Mailing list pgsql-general

From Moreno Andreo
Subject Re: [GENERAL] Recover corrupted data
Date
Msg-id e5a313ec-87c3-3a43-2a2b-53eccd911992@evolu-s.it
Whole thread Raw
In response to Re: [GENERAL] Recover corrupted data  (Vick Khera <vivek@khera.org>)
Responses Re: [GENERAL] Recover corrupted data  (Alexandre <psybox@gmail.com>)
List pgsql-general
Il 19/04/2017 17:49, Vick Khera ha scritto:
1) restore from backup
2) fix whatever configuration you made to let windows (or your hardware) destroy your data on crash. is there some RAID cache that is not backed up by a battery?

IMHO If there's no hurry, it'd be better to start with point 2, because if your filesystem (or hardware) is somehow badly broken, it will happen again...
If you have more than one database in your cluster, you can find what's the database that's been corrupted and restore just that one, instead of the whole cluster.
Cheers
Moreno


On Wed, Apr 19, 2017 at 10:18 AM, Alexandre <psybox@gmail.com> wrote:
Hello,

The computer had a unexpected shutdown, it is a Windows machine.
Now some data appears to be corrupted, I am receiving exceptions like this:

ERROR: could not read block 0 in file "base/16393/16485": read only
0 of 8192 bytes

There is some way to correct this?


pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [GENERAL] Why so long?
Next
From: Steve Clark
Date:
Subject: Re: [GENERAL] Why so long?