Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id RAA00236 for postgres-redist; Tue, 7 Nov 1995 17:08:29 -0800 Resent-From: POSTGRES mailing list Resent-Message-Id: <199511080108.RAA00236@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from TIKA.NDIM.EDRC.CMU.EDU (TIKA.NDIM.EDRC.CMU.EDU [128.2.214.239]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id RAA00369 for ; Tue, 7 Nov 1995 17:08:24 -0800 Message-Id: <199511080108.RAA00369@nobozo.CS.Berkeley.EDU> Received: from localhost by TIKA.NDIM.EDRC.CMU.EDU id aa22491; 8 Nov 95 1:07 GMT To: Peter Osterberg cc: postgres@postgres.Berkeley.EDU Subject: Re: Moving a database In-reply-to: Peter Osterberg's message of Tue, 7 Nov 1995 21:45:36 +0100 (MET) Date: Tue, 07 Nov 1995 20:07:52 -0500 From: Robert Patrick Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Tue, 07 Nov 95 17:08:27 -0800 Resent-XMts: smtp > I had previoulsy my postgres-deamon running on a Linux-box. I did set up > the postgres deamon on a SS20 today and everything seems to work as it > should. I can create new DB's and so on. The problem comes when I try to > move my existing database to the SS20. I get PQExec errors when try to visit > the _moved_ database with 'monitor'. I moved the database by simply > copying all the old database files with ftp and cp. I understand that I > can't do like that. I also tryied to create an empty database with > createdb and the same name, and then ftp and cp the database-files. And > that didn't work either. > I have the same version on both my machines, version 4.2. > Is there anyway in which I can move the database between my computers. The only way to do it is to use the "copy" command to copy each table out of the old database to a file and that file back into the new database. Postgres store the tables in a binary format and since Intel uses a "little endian" representation and Sparcs use "big endian", you're outta luck as far as a straight file transfer. (You can actually move database files back and forth between a sparc and an hp since they have the same binary representation). Robert -- +------------------------------------------------------------------------+ | Robert Patrick (rp2y+@edrc.cmu.edu) Engineering Design Research Center | | n-dim Group Carnegie Mellon University | | World Wide Web: http://tika.ndim.edrc.cmu.edu/~rp2y/Home.html | +------------------------------------------------------------------------+ ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU". If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ============================================================================== URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/