From: | Christopher Sawtell <csawtell(at)xtra(dot)co(dot)nz> |
---|---|
To: | <rocael(at)usa(dot)net>, pgsql-novice(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] moving DB |
Date: | 2000-06-06 07:33:43 |
Message-ID: | 00060619402701.15623@berty |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-sql |
On Sat, 12 Jul 2036, rocael(at)usa(dot)net wrote:
> Hi all!
>
> well, can somebody tell me how to move a DB (e.g. I have a DB named NET in
> PC1 under pg6.5.3 and I want to put it in PC2 under pg7.0)
> should I copy just the data/base/NET/ directory and the paste it in the
> data/base of the PC2...
No, No, don't do that.
pg7.x cannot read databases created by pg6.5.3
> which are the exactly steps...
>
> :o) thanx
use pg_dumpall on PC1 and then read it back in on the other system.
pg_dumpall -o > db.out # on PC1
move the db.out file to PC2 in whatever way is appropriate.
psql -e template1 < db.out # on PC2
--
Sincerely etc.,
NAME Christopher Sawtell - iOpen Technologies Ltd.
CELL PHONE 021 257 4451
ICQ UIN 45863470
EMAIL chris @ iopen . co . nz, csawtell @ xtra . co . nz
WWW http://www.iopen.co.nz
CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz
-->> Please refrain from using HTML or WORD attachments in e-mails to me <<--
From | Date | Subject | |
---|---|---|---|
Next Message | Charlie Derr | 2000-06-06 07:47:33 | RE: any tutor/samples for installing/starting/programming onNT ? |
Previous Message | Kevin Lo | 2000-06-06 02:26:19 | Re: any tutor/samples for installing/starting/programming onNT ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Rostislav Opocensky | 2000-06-06 12:11:28 | Re: Vacuum problem in my system ? |
Previous Message | Stephen Crawley | 2000-06-06 00:35:48 | Is it possible to "truncate" a LOB? |