Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2B04D9F9AC3 for ; Mon, 22 Oct 2007 01:42:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 16527-04 for ; Mon, 22 Oct 2007 01:41:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from weatherbeeta.com.au (mail.weatherbeeta.com.au [202.154.127.242]) by postgresql.org (Postfix) with ESMTP id 8C4F79F9A2C for ; Mon, 22 Oct 2007 01:41:53 -0300 (ADT) Received: (qmail 9807 invoked from network); 22 Oct 2007 04:41:51 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;0aa8fad21e7dbf5c66479d40886d3d7d; Received: from unknown (HELO mail.weatherbeeta.com.au) (10.20.0.2) by 10.20.0.254 with SMTP; 22 Oct 2007 04:41:51 -0000 Received: (qmail 10013 invoked by uid 1166); 22 Oct 2007 14:41:44 +1000 Received: from 172.20.0.155 by mail.weatherbeeta.com.au (envelope-from , uid 1165) with qmail-scanner-1.25-st-qms (clamdscan: 0.88.6/2315. perlscan: 1.25-st-qms. Clear:RC:1(172.20.0.155):. Processed in 0.190436 secs); 22 Oct 2007 04:41:44 -0000 X-Antivirus-mail.weatherbeeta.com.au-Mail-From: phillip.smith@weatherbeeta.com.au via mail.weatherbeeta.com.au X-Antivirus-mail.weatherbeeta.com.au: 1.25-st-qms (Clear:RC:1(172.20.0.155):. Processed in 0.190436 secs Process 10006) Received: from it-phil.weatherbeeta.com.au (HELO wbaus090) (172.20.0.155) by mail.weatherbeeta.com.au with SMTP; 22 Oct 2007 14:41:43 +1000 From: "Phillip Smith" To: "'Anibal David Acosta'" , Subject: Re: Please help (backup) Date: Mon, 22 Oct 2007 14:41:31 +1000 Organization: Weatherbeeta Pty Ptd Message-ID: <01e701c81465$d186bd60$9b0014ac@wbaus090> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal In-Reply-To: <471BF9DB.2010301@personal.net.py> X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1193028111.537-9799-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.01/0.03 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.654 tagged_above=0 required=5 tests=AWL=-0.557, BAYES_40=-0.185, MIME_QP_LONG_LINE=1.396 X-Spam-Level: X-Archive-Number: 200710/203 X-Sequence-Number: 27117 The dumped file is just a plain-text file (Depending on the data types within your database) You should be able to open the backup you made with pg_dump in your favourite editor such as vi and search through for the dodgy data. Clear = out the bad stuff, write it back to disk and you should be good to go. Obviously this won't "save" the damaged portion of the data, and it may = have unpredictable effects when you take in to account any foreign keys etc = you may have in the database that depends on this data. Cheers, ~p > -----Original Message----- > From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin- > owner@postgresql.org] On Behalf Of Anibal David Acosta > Sent: Monday, 22 October 2007 11:16 > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Please help (backup) >=20 > I have a backup done with "pg_dump" utility. >=20 > For some reason the backup file has 8 phisical bad sectors (17 KB of = data) >=20 > Now when I try to restore the backup all tables are created = successfully > and data of almost all tables restores successfully too, but one table > (the most important) appear empty. >=20 > When I do a pg_restore its show all sql instructions and > data until arrive to the "damaged sector" and throws a "out of memory" > exception. >=20 > I want to know if is possible to fix the backup file removing the = blocks > in the "bad sectors" in order to restore all other information. >=20 > something like file dump surgery :) >=20 > Thanks! >=20 > Anibal >=20 >=20 > ---------------------------(end of = broadcast)--------------------------- > TIP 4: Have you searched our list archives? >=20 > http://archives.postgresql.org THINK BEFORE YOU PRINT - Save paper if you don't really need to print this *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments e-mail.