X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5F27FD894B for ; Tue, 6 Sep 2005 21:25:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23953-08 for ; Wed, 7 Sep 2005 00:25:03 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id EFD2DD895E for ; Tue, 6 Sep 2005 21:25:02 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j870P4pB035236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Sep 2005 18:25:06 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j870P3Zr008717; Tue, 6 Sep 2005 18:25:03 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j870P3pL008716; Tue, 6 Sep 2005 18:25:03 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 6 Sep 2005 18:25:03 -0600 From: Michael Fuhr To: "Anye M. Sellers" Cc: pgsql-ports@postgresql.org Subject: Re: Can a pg_dump file be loaded into a different OS? Message-ID: <20050907002415.GA8507@winnie.fuhr.org> References: <20050906132712.GA5341@winnie.fuhr.org> <20050906150431.50908.qmail@web54004.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050906150431.50908.qmail@web54004.mail.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 required=5 tests=[AWL=0.005] X-Spam-Level: X-Archive-Number: 200509/9 X-Sequence-Number: 2203 [Please copy the mailing list on replies so others can participate in and learn from the discussion.] On Tue, Sep 06, 2005 at 08:04:31AM -0700, Anye M. Sellers wrote: > I actually meant the custom archive format. One of > the tables in the client's database has so many > records that it crashes creating a script file for it, > at the exact same place every time - so they created > used the -Fc extention on the pg_dump command. What crashes? pg_dump or the backend? What (if any) error messages do you see on the command line and in the server's logs? If you can reproduce that problem consistently then please report it as a possible bug, because it shouldn't happen. Regarding the custom archive format, the documentation says it should work across platforms, and it has worked for me when I've done it (going between FreeBSD/i386 and Solaris/sparc), at least with PostgreSQL 8.0.3. > When I try to load it I get an error saying the > archive file is missing the "magic" line in the > header. I wasn't sure if that was a Linux vs. Windows > issue or if the archive file was corrupt. That sounds like a corrupt file. What were the exact commands you used to dump and restore the file, and what was the exact error message? What version of PostgreSQL are you using? Are you using the same version on both systems? How did you transfer the file from one system to the other? Did you do a binary transfer? I don't know that a non-binary transfer would corrupt the magic header, but it would probably corrupt other data in the file. -- Michael Fuhr