Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Fix corrupt pg_toast table?


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Michael Clark <codingninja(at)gmail(dot)com>
  • Cc: pgsql-admin(at)postgresql(dot)org
  • Subject: Re: Fix corrupt pg_toast table?
  • Date: Thu, 30 Jul 2009 17:59:08 -0400
  • Message-id: <4593.1248991148@sss.pgh.pa.us> <text/plain>

Michael Clark <codingninja(at)gmail(dot)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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group