Re: trouble migrating large objects from 7.1.3 to 7.3.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John M(dot) Layman" <jml(at)frijid(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org, Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
Date: 2003-04-22 16:22:36
Message-ID: 3658.1051028556@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"John M. Layman" <jml(at)frijid(dot)net> writes:
> pg_dump -p 6543 -b -Ft -v -o dbase | pg_restore -p 5432 -Ft -v -o -d dbase

> The above command causes pg_restore to fail with the following error:

> pg_restore: [tar archiver] could not find header for file 37.dat in tar archive

Philip Warner points out that "-o" for pg_restore means "restore in OID
order", which requires seeking in the input file, which won't work on
piped input. Try it without the -o on the restore side. (Offhand I'd
bet that you don't really want -o on the dump side, either, but that's
a different issue.)

The error messages do leave something to be desired :-(

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message jml 2003-04-22 17:07:00 Re: trouble migrating large objects from 7.1.3 to 7.3.2
Previous Message Tom Lane 2003-04-22 05:32:09 Re: trouble migrating large objects from 7.1.3 to 7.3.2