Search Postgresql Archives

Re: unexpected data offset flag 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



matthias.trauffer@xxxxxxxx writes:
> I'm trying to restore a database dumpfile I made of a small 9.3.4 database 
> using pg_dump -Fc -v -f "db.dump" db, but when I try to restore it on the 
> same or on another 9.3.4 system with  pg_restore -C -d postgres db.dump I 
> get the following error message:
> pg_restore: [archiver] unexpected data offset flag 0
> Even listing the contents doesn't work: pg_restore -l db.dump
> pg_restore: [archiver] unexpected data offset flag 0
> I couldn't find anything in the documentation about this error message. Is 
> it possible that the dump is corrupted?

Yeah, sounds that way :-(

> What can I do to fix this?

Probably not much, so far as this copy of the file is concerned.  My first
guess as to what happened to it is Windows to non-Windows (or vice versa)
newline conversion, which could add or remove bytes and thus mangle the
file's archive structure.  How did you transfer the file across machines
exactly?

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux