Re: Reg: PostgreSQL Server "base/data" recovery - Mailing list pgsql-general

From Michael Paquier
Subject Re: Reg: PostgreSQL Server "base/data" recovery
Date
Msg-id CAB7nPqQooOf48ozO-Z6ucit-0s2vDkEVejgwX8LF5yOowXxvbA@mail.gmail.com
Whole thread Raw
In response to Reg: PostgreSQL Server "base/data" recovery  (Prajilal KP <prajilal.kp@gmail.com>)
Responses Re: Reg: PostgreSQL Server "base/data" recovery  (Prajilal KP <prajilal.kp@gmail.com>)
List pgsql-general
On Thu, Mar 19, 2015 at 5:19 PM, Prajilal KP <prajilal.kp@gmail.com> wrote:
> Recently i have noticed that my PostgreSQL server is returning the error
> messages like "Could not read block 6160722 in file
> "base/data/16384/11033028.47".

Don't you have more details to share? There should be some hint here
as well, and usually you may be facing such things because of OS or
hardware problems.

> When i have checked the "base/data/16384" directory, some of the file's data
> size is zero and exactly from that time i have started receiving the said
> error messages.
>
> Could you please advise the way to recover the Database without loosing any
> data?

If you are facing hardware problems, this may be a time to deploy a
backup and replay WAL up to where you wish to on clean disks.

> PostgreSQL version : 9.0.4

9.0.4 has been released in 2011, so you are missing 4 years worth of
bug fixes, the latest minor version of the 9.0.X release being 9.0.19.
Note as well that 9.0 will be EOL at the end of the year, hence you
could do even better: an upgrade to a newer major version.

Regards,
--
Michael


pgsql-general by date:

Previous
From: Prajilal KP
Date:
Subject: Reg: PostgreSQL Server "base/data" recovery
Next
From: Prajilal KP
Date:
Subject: Re: Reg: PostgreSQL Server "base/data" recovery