X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7BC18475EEE for ; Tue, 22 Apr 2003 12:22:40 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AF5764758C9 for ; Tue, 22 Apr 2003 12:22:37 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3MGMaU6003659; Tue, 22 Apr 2003 12:22:36 -0400 (EDT) To: "John M. Layman" Cc: pgsql-admin@postgresql.org, Philip Warner Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2 In-reply-to: <001d01c3083e$e4f26030$0400a8c0@frijid.net> References: <000801c307c8$3950dc00$0400a8c0@frijid.net> <001d01c3083e$e4f26030$0400a8c0@frijid.net> Comments: In-reply-to "John M. Layman" message dated "Mon, 21 Apr 2003 15:47:45 -0400" Date: Tue, 22 Apr 2003 12:22:36 -0400 Message-ID: <3658.1051028556@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/296 X-Sequence-Number: 8451 "John M. Layman" 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