Re: pg_restore recovery from error. - Mailing list pgsql-hackers

From V i s h a l Kashyap @ [Sai Hertz And Control Systems]
Subject Re: pg_restore recovery from error.
Date
Msg-id 40CF3609.4070106@sancharnet.in
Whole thread Raw
In response to pg_restore recovery from error.  (Chris Bowlby <chris@pgsql.com>)
Responses Re: pg_restore recovery from error.
List pgsql-hackers
Dear Chris ,

> pg_restore: [custom archiver] could not read data block -- expected 
> 4096, got 3870
> pg_restore: *** aborted because of error
>
>  It appears some of the data itself is not readable, which is fine, 
> but I'd like it to skip past this table and move onto the next one. 
> Has anyone got any ideas as to where I should look for that?


Make a plain text  file out of  your  archive and then edit apropriately 
for desired results

I dont remember the way it could be done but something live

pg_restore -U <BOGUS>  >> my_database.sql
cat my_database.sql

Drawbacks :
1. Large database would be headache
2. Blobs would not be restored


-- 
Regards,
Vishal Kashyap
Director / Lead Software Developer,
Sai Hertz And Control Systems Pvt Ltd,
http://saihertz.rediffblogs.com
Yahoo  IM: mailforvishal[ a t ]yahoo.com



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: #postgresql report
Next
From: Tom Lane
Date:
Subject: Re: OWNER TO on all objects