dbTalk Databases Forums  

Any equivalent of MSSQL Detach?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Any equivalent of MSSQL Detach? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kenneth Downs
 
Posts: n/a

Default Any equivalent of MSSQL Detach? - 11-18-2004 , 09:41 PM






I am wondering if it is possible to pick up a database from one computer and
move it over to another and then just plug it back in.

It appears that a database is stored inside of a directory that is named
after the db's OID. The directory contains what I am guessing are
individual files that are also named after various OIDs.

Can such things be picked up the way you would pick up a Microsoft database?

--
Kenneth Downs
Use first initial plus last name at last name plus literal "fam.net" to
email me

Reply With Quote
  #2  
Old   
Doug McNaught
 
Posts: n/a

Default Re: Any equivalent of MSSQL Detach? - 11-21-2004 , 06:51 PM






Kenneth Downs <firstinit.lastname (AT) lastnameplusfam (DOT) net> writes:

Quote:
I am wondering if it is possible to pick up a database from one computer and
move it over to another and then just plug it back in.
No, unless you do the whole database cluster, and the two machines are
the same architecture and have the same version of PG, compiled the
same way. Basically there are a lot of interdependencies between
different parts of the database cluster, so you can't just grab a
single database and copy it over.

pg_dump is the way to go...

P.S. I'm replying to the list only because I can't be bothered to
demangle your address. If you don't get the reply, tough toenails.

-Doug

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.