table corruption

From: Peter Hunčár <hunci(at)hunci(dot)sk>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: table corruption
Date: 2017-10-23 14:44:27
Message-ID: CADOjABnKXR1g20Pb14dbH50hyeYPQqYo+MGisQYWnj_ot_JtOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

we have a table with around 1.6 billion rows having quite lot of big binary
data toasted.

Today we started getting:
WIB > ERROR: invalid page in block 1288868309 of relation base/96031/96201

Which is a toast reltype.

I know that zero_damaged_pages and vacuum (or restore the table from
backup) will help, but I want to ask if there is a way to identify affected
rows/datafiles, so we can 'fix' only the affected data using the
backup/source data, instead of restoring the whole table?

Thank you

Regards

P.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Nolan 2017-10-23 14:52:04 Re: Postgres 9.6 fails to start on VMWare
Previous Message Geoff Winkless 2017-10-23 14:24:14 Re: multiple sql results to shell