Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id C40DB2E0073 for ; Fri, 13 Jun 2008 13:59:11 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 99900-03 for ; Fri, 13 Jun 2008 13:58:51 -0300 (ADT) X-Greylist: delayed 00:11:17.689374 by SQLgrey-1.7.6 Received: from smtp.well.com (smtp.well.com [208.17.81.207]) by developer.postgresql.org (Postfix) with ESMTP id 1966E2E004D for ; Fri, 13 Jun 2008 13:58:35 -0300 (ADT) X-WELL-Auth: Yes Received: from SILVER.now.org (adsl-75-18-205-176.dsl.pltn13.sbcglobal.net [75.18.205.176]) by smtp.well.com (8.14.2/8.14.2) with ESMTP id m5DGkwT8013886 for ; Fri, 13 Jun 2008 09:47:09 -0700 Message-Id: <200806131647.m5DGkwT8013886@smtp.well.com> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 13 Jun 2008 09:41:20 -0700 To: pgsql-admin@postgresql.org From: NOW Web Sites Manager Subject: block error, but can't pg_dump Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on wodehouse.well.com X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/113 X-Sequence-Number: 29451 I have a table that reports one block error when I try to select everything, reindex, vacuum, etc. (invalid page header in block 413620 of relation "tablename") I've read on the list that the thing to do is use pg_dump and then restore it. However, pg_dump fails with the same error. I can't take down the whole server, let alone easily Postgresql, to debug this. Any ideas as to how I could do this? I wrote a Perl script to select the records one by one but it didn't find a bad record although maybe it's how I wrote the script (it just selected the records one by one.) I also don't know enough about Postgresql data/blocks to figure out which data is in that block and what I'd do with that. Thanks in advance. P.S. "relation" means the table, not an index, right? I don't see an index with the same name as the table, but thought I'd check.