Re: Need some help on PG database transfer - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Need some help on PG database transfer
Date
Msg-id AANLkTil7uzljDhGYpwe_ZuURo120PQ0cSYQ_ppZlHuM0@mail.gmail.com
Whole thread Raw
In response to Need some help on PG database transfer  (Steeles <steeles@gmail.com>)
List pgsql-general
On Thu, Jul 22, 2010 at 2:08 PM, Steeles <steeles@gmail.com> wrote:
> Hi all,
>
> I am doing some tests on the file level copying for one of database in
> windows platform. Here is what I want to achieve.
>
> copy files within PG tablespace folder where PG database resides to target
> machine. I want to attache the copied data to target PG database.

That won't work.  You have to pg_dump out the tables / tablespace and
then psql or pg_restore it to the other db.

pgsql-general by date:

Previous
From: Steeles
Date:
Subject: Need some help on PG database transfer
Next
From: Peter Hunsberger
Date:
Subject: Re: Bitmask trickiness