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 RAA31808 for postgres-redist; Tue, 7 Nov 1995 17:14:57 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199511080114.RAA31808@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 deliverator.io.com (deliverator.io.com [199.170.88.17]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with ESMTP id RAA31792 for <postgres@nobozo.CS.Berkeley.EDU>; Tue, 7 Nov 1995 17:14:50 -0800
Received: from tristero.io.com (tristero.io.com [199.170.88.11]) by deliverator.io.com (8.6.12/8.6.12) with ESMTP id TAA24939; Tue, 7 Nov 1995 19:14:00 -0600
Received: from dialup-81.austin.io.com (dialup-81.austin.io.com [199.170.89.119]) by tristero.io.com (8.6.12/8.6.12) with SMTP id TAA08224; Tue, 7 Nov 1995 19:10:01 -0600
Date: Tue, 7 Nov 1995 19:10:01 -0600
Message-Id: <199511080110.TAA08224@tristero.io.com>
X-Sender: mskc@mail.io.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Peter Osterberg <ohb@dataphone.se>, postgres@postgres.Berkeley.EDU
From: mskc@io.com (Casey Claiborne)
Subject: Re: Moving a database
X-Mailer: <PC Eudora Version 1.4>
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Tue, 07 Nov 95 17:14:56 -0800
Resent-XMts: smtp

Hi - 
        this may be a shot in the dark - but on other databases, one
can "download" data from specified table onto a disk or another type 
of medium and then "upload" it into a different table or that can be a part
of a different database (of course in the second database, the table
has to be already created).

Does postgres have this type of functionality? Most databases I 
have worked on have *something* like it.

I suppose that if one were *really* desperate, they could write
a program that selects all the data from the table, place it into 
a comma-delimeted file and then  write another program that reads
the data from the comma delimeted file and places it into the table
of choice.

Casey


At 09:45 PM 11/7/95, Peter Osterberg wrote:
>I had previoulsy my postgres-deamon running on a Linux-box. I did set up=20
>the postgres deamon on a SS20 today and everything seems to work as it=20
>should. I can create new DB's and so on. The problem comes when I try to=20
>move my existing database to the SS20. I get PQExec errors when try to visi=
>t=20
>the _moved_ database with 'monitor'. I moved the database by simply=20
>copying all the old database files with ftp and cp. I understand that I=20
>can't do like that. I also tryied to create an empty database with=20
>createdb and the same name, and then ftp and cp the database-files. And=20
>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.
>
>Regards Peter
>
>__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__
>|| At home:                   || DataPhone Sweden AB                    ||
>|| Peter =D6sterberg            || Peter =D6sterberg                       =
> ||
>|| Ekstigen 6                 || Po.Box 209                             ||
>|| 161 36  Bromma             || 161 65 Bromma                          ||
>||                            || Tel.....: +46(0)8 - 704 17 00          ||
>||                            || Fax.....: +46(0)8 - 704 91 00          ||
>||                            || Cellular: +46(0)70 - 735 65 15         ||
>||                            || Email...: ohb@dataphone.se             ||
>||                            || URL.....: http://www.dataphone.se/~ohb ||
>~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~-__-~~
>
>
>==============================================================================
>   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/
>
>


One must note the importance of setting reasonable and achievable goals for
                    "If you aim for nothing, you'll hit it every time" 
                               -Theodore Roosevelt


==============================================================================
   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/
