Re: Fix corrupt pg_toast table? - Mailing list pgsql-admin

From Tom Lane
Subject Re: Fix corrupt pg_toast table?
Date
Msg-id 4593.1248991148@sss.pgh.pa.us
Whole thread Raw
In response to Fix corrupt pg_toast table?  (Michael Clark <codingninja@gmail.com>)
List pgsql-admin
Michael Clark <codingninja@gmail.com> writes:
> I have a database which appears to have some corruption in a toast value.

> When I select a certain table, I get the following error:
> ERROR: invalid page header in block 984 of relation "pg_toast_17341_index"

If it's only that index that has gotten damaged, REINDEX will fix it, eg
    reindex index pg_toast.pg_toast_17341_index;

The bigger concern is whether there is other damage.  Have you had any
system crashes, indications of flaky hardware, etc on that machine?

            regards, tom lane

pgsql-admin by date:

Previous
From: Michael Clark
Date:
Subject: Fix corrupt pg_toast table?
Next
From: ml ml
Date:
Subject: Point in Time Recovery (WAL) archive_command