pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
moving DB 3+ messages / 3 participants [nested] [flat]
* moving DB @ 2000-06-05 20:01 rocael@usa.net 0 siblings, 1 reply; 3+ messages in thread From: rocael@usa.net @ 2000-06-05 20:01 UTC (permalink / raw) To: pgsql-novice@postgresql.org; pgsql-sql 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... which are the exactly steps... :o) thanx Rocael ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] moving DB @ 2000-06-06 07:33 Christopher Sawtell <csawtell@xtra.co.nz> parent: rocael@usa.net 0 siblings, 0 replies; 3+ messages in thread From: Christopher Sawtell @ 2000-06-06 07:33 UTC (permalink / raw) To: rocael@usa.net; pgsql-novice@postgresql.org; pgsql-sql 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 <<-- ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: moving DB @ 2000-06-06 13:54 Kenn Thompson <KThompson@adestagroup.com> 0 siblings, 0 replies; 3+ messages in thread From: Kenn Thompson @ 2000-06-06 13:54 UTC (permalink / raw) To: pgsql-sql Related to this- how do you accomplish the same this while preserving the existing OIDs? >>> Christopher Sawtell <csawtell@xtra.co.nz> 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 <<-- ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-06-06 13:54 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2000-06-05 20:01 moving DB rocael@usa.net 2000-06-06 07:33 ` Christopher Sawtell <csawtell@xtra.co.nz> 2000-06-06 13:54 Re: moving DB Kenn Thompson <KThompson@adestagroup.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox