Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4C63A475F8C for ; Tue, 22 Oct 2002 16:22:05 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id CCBC2475F85 for ; Tue, 22 Oct 2002 16:22:04 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id B05C6381634; Tue, 22 Oct 2002 16:22:04 -0400 (EDT) From: jboes@nexcerpt.com (Jeff Boes) X-Newsgroups: comp.databases.postgresql.admin Subject: Drop and reload table to clear corruption? Date: 22 Oct 2002 10:42:44 -0700 Organization: http://groups.google.com/ Lines: 29 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/198 X-Sequence-Number: 6056 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.