From: MichaelDBA@sqlexec.com <michaeldba@sqlexec.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: vinod kale <vinod16895@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Block corruption Error.
Date: Thu, 4 Jun 2020 11:11:37 -0400
Message-ID: <A4156F26-6BAA-4C34-B913-6EC8F58CF8EC@sqlexec.com> (raw)
In-Reply-To: <CAMkU=1xqJUG3k9rBY_GfTMt5aw58o7QY5qW+n8D=zen26fwjSg@mail.gmail.com>
References: <CAMkU=1xqJUG3k9rBY_GfTMt5aw58o7QY5qW+n8D=zen26fwjSg@mail.gmail.com>
Loop thru the affected tables using primary key or ctid and catch exception rows and delete them
Sent from my iPhone
> On Jun 4, 2020, at 10:50 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
>
>
>> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: michaeldba@sqlexec.com, jeff.janes@gmail.com, vinod16895@gmail.com
Subject: Re: Block corruption Error.
In-Reply-To: <A4156F26-6BAA-4C34-B913-6EC8F58CF8EC@sqlexec.com>
References: <CAMkU=1xqJUG3k9rBY_GfTMt5aw58o7QY5qW+n8D=zen26fwjSg@mail.gmail.com> <A4156F26-6BAA-4C34-B913-6EC8F58CF8EC@sqlexec.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox