Re: Data directory copies... - Mailing list pgsql-novice

From Tom Lane
Subject Re: Data directory copies...
Date
Msg-id 15742.1101927875@sss.pgh.pa.us
Whole thread Raw
In response to Data directory copies...  (Steve Tucknott <steve@retsol.co.uk>)
List pgsql-novice
Steve Tucknott <steve@retsol.co.uk> writes:
> If I have two 'servers' - both RedHat 8, both running PostgreSQL 7.4.5,
> is is valid (if the postmaster is down on both servers) to simply copy
> the PGDATA directory from one 'server' to a different (previously
> emptied) location on the second 'server'?

Yes, if the servers are compiled identically on both machines.  (If they
were compiled with different options, the second server should refuse to
start on the copied data directory, so you don't need to be too afraid
of getting burnt.  But you do need to be sure the two machines are of
the same architecture --- don't try this between, say, i386 and PPC, nor
even between 32- and 64-bit models on a 64-bit machine.)

You must copy the whole PGDATA directory tree, of course.

            regards, tom lane

pgsql-novice by date:

Previous
From: Steve Tucknott
Date:
Subject: Data directory copies...
Next
From: "Thomas Hermann(Software)"
Date:
Subject: Re: views with parameters