Re: Move a database from one server to other

From: ptjm(at)interlog(dot)com (Patrick TJ McPhee)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Move a database from one server to other
Date: 2007-06-26 03:51:22
Message-ID: 138139q27gemo9e@corp.supernews.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <24916(dot)62(dot)244(dot)190(dot)66(dot)1182786241(dot)squirrel(at)www(dot)chuckie(dot)co(dot)uk>,
Nicholas Barr <nicky(at)chuckie(dot)co(dot)uk> wrote:

% Only copy the data directory if both servers are offline and not running
% and if both servers use the same version of postgres. This method is not
% recommended AFAIK.

It _is_ recommended for setting up a warm-standby server (it's the only way).

I copy database clusters around all the time. If the database is shut down,
there's no harm in it and it's usually faster and always simpler than
dump/restore. Copying a snapshot of a running system only has a teenly
little bit of harm in it and you don't even have to shut down the db.
--

Patrick TJ McPhee
North York Canada
ptjm(at)interlog(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mikko Partio 2007-06-26 03:58:20 Re: data partitions across different nodes
Previous Message 金星星 2007-06-26 03:18:10 data partitions across different nodes