X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 25F50475A8D for ; Mon, 21 Apr 2003 22:14:36 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 11E94474E42 for ; Mon, 21 Apr 2003 22:14:05 -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 h3M2E7U6019018; Mon, 21 Apr 2003 22:14:07 -0400 (EDT) To: "John M. Layman" Cc: pgsql-admin@postgresql.org 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: Mon, 21 Apr 2003 22:14:07 -0400 Message-ID: <19017.1050977647@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.1 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,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/292 X-Sequence-Number: 8447 "John M. Layman" writes: > I'm using the following command to migrate the data: > pg_dump -p 6543 -b -Ft -v -o dbase | pg_restore -p 5432 -Ft -v -o -d dbase The tar-archive code seems to have some bugs in it :-(. I will look at that, but the primary problem you are going to face here is that pg_restore needs to seek in the dump file to implement this operation, and it can't seek a pipe. I think you will need to (a) use -Fc not -Ft, and (b) write the dump to a temp file that pg_restore reads as a separate operation. regards, tom lane