Re: Block corruption Error. - Mailing list pgsql-admin

From Jeff Janes
Subject Re: Block corruption Error.
Date
Msg-id CAMkU=1xqJUG3k9rBY_GfTMt5aw58o7QY5qW+n8D=zen26fwjSg@mail.gmail.com
Whole thread Raw
In response to Block corruption Error.  (vinod kale <vinod16895@gmail.com>)
Responses Re: Block corruption Error.
List pgsql-admin
On Tue, Jun 2, 2020 at 11:11 AM vinod kale <vinod16895@gmail.com> wrote:
Hello Team,

We have generated one scenario for learning purpose regarding block corruption. 
We have manually corrupt the one table file at disk level and after queried to that table we got below attached error.
So could you please help me out in below scenario?
What is the best method to resolve below error. ?

I don't understand what you are asking.  You intentionally created corruption, so now you have corruption.  Restore from a backup plus archived WAL files, or promote your standby, or do whatever your recovery plan dictates.

Of course you could just edit the file and reverse whatever it is you did (while the db is shutdown), but that would not constitute a  plan.

Cheers,

Jeff

pgsql-admin by date:

Previous
From: Mat Hanson
Date:
Subject: LDAPS Connection Issue - Unable to open socket
Next
From: "MichaelDBA@sqlexec.com"
Date:
Subject: Re: Block corruption Error.