agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Casey Claiborne <mskc@io.com>
To: Peter Osterberg <ohb@dataphone.se>
To: postgres@postgres.Berkeley.EDU
Subject: Re: Moving a database
Date: Tue, 7 Nov 1995 19:10:01 -0600
Message-ID: <199511080110.TAA08224@tristero.io.com> (raw)
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/
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: mskc@io.com, ohb@dataphone.se
Subject: Re: Moving a database
In-Reply-To: <199511080110.TAA08224@tristero.io.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox