pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John M. Layman <jml@frijid.net>
Cc: pgsql-admin@postgresql.org, Philip Warner <pjw@rhyme.com.au>
Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
Date: Tue, 22 Apr 2003 12:22:36 -0400
Message-ID: <3658.1051028556@sss.pgh.pa.us> (raw)
In-Reply-To: <001d01c3083e$e4f26030$0400a8c0@frijid.net>
References: <000801c307c8$3950dc00$0400a8c0@frijid.net>
	<001d01c3083e$e4f26030$0400a8c0@frijid.net>

"John M. Layman" <jml@frijid.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




view thread (8+ messages)  latest in thread

Message-ID: <3658.1051028556@sss.pgh.pa.us>
Permalink:  ../3658.1051028556@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3658.1051028556@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jml@frijid.net, pjw@rhyme.com.au
  Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
  In-Reply-To: <3658.1051028556@sss.pgh.pa.us>
  References: <000801c307c8$3950dc00$0400a8c0@frijid.net> <001d01c3083e$e4f26030$0400a8c0@frijid.net> <3658.1051028556@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox