From: jboes@nexcerpt.com
To: pgsql-admin@postgresql.org
Subject: Drop and reload table to clear corruption?
Date: 22 Oct 2002 10:42:44 -0700
Message-ID: <d40a65a1.0210220942.211df2bf@posting.google.com> (raw)
We have a few tables that seem to have suffered some kind of
corruption in their TOAST files. Symptoms include:
+ Runaway CPU usage during VACUUM ANALYZE (load average
spikes of 20x normal for 10-15 minutes at a time) and
more rarely during other operations
+ Recurring messages of "ERROR: Parent tuple was not found"
during VACUUM FULL
We have upgraded from 7.2.1 to 7.2.3 without apparent effect. Now
what I would like to try is:
1. pg_dump the table
2. truncate the table
3. VACUUM FULL (is this necessary?)
4. reload from pg_dump file
However, due to the very large number of foreign key constraints into
this table, I really don't want to drop the table, nor do I want to
trigger cascading deletes or updates. Can I use the same snippet of
code generated by pg_dump to disable the triggers? Are there any
other precautions I should take?
Please CC me on any responses, as I read this list via NNTP, and
news.postgresql.org seems to be on the blink this week.
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: jboes@nexcerpt.com
Subject: Re: Drop and reload table to clear corruption?
In-Reply-To: <d40a65a1.0210220942.211df2bf@posting.google.com>
References: <d40a65a1.0210220942.211df2bf@posting.google.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