Re: Any equivalent of MSSQL Detach?

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Any equivalent of MSSQL Detach?
Date: 2004-11-22 00:51:58
Message-ID: 874qji9041.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kenneth Downs <firstinit(dot)lastname(at)lastnameplusfam(dot)net> writes:

> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message P. George 2004-11-22 01:58:37 timestamp with time zone question...
Previous Message Dawid Kuroczko 2004-11-21 23:47:16 Re: COMMIT within function?