Received: from 10.0.0.4 ([208.245.233.8]) by hub.org (8.10.1/8.10.1) with SMTP id e56DtgW07417 for ; Tue, 6 Jun 2000 09:55:42 -0400 (EDT) Received: from MFSNTOMAM_DOMAIN-Message_Server by 10.0.0.4 with Novell_GroupWise; Tue, 06 Jun 2000 08:55:11 -0500 Message-Id: X-Mailer: Novell GroupWise 5.5.2 Date: Tue, 06 Jun 2000 08:54:34 -0500 From: "Kenn Thompson" To: Subject: Re: moving DB Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id e56DtgW07419 X-Archive-Number: 200006/56 Related to this- how do you accomplish the same this while preserving the existing OIDs? >>> Christopher Sawtell 06/06/00 02:33AM >>> On Sat, 12 Jul 2036, rocael@usa.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 <<--