Scott Frankel <leknarf@pacbell.net> writes:
> What does this error mean?
> pg_restore: [tar archiver] could not find header for file 1765.dat
> in tar archive
It means either the tar file is corrupt or pg_restore has a bug.
Can tar read the file correctly? If so, does it find a file named
1765.dat therein?
(Historically, the tar code in pg_dump/pg_restore has not been as
well debugged as the custom format, so you might want to just use
-Fc instead. If you're really intent on using -Ft, be prepared to
help us debug it.)
regards, tom lane