pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgresql 7.4 migration to (partially) new disks
Date: Fri, 15 Sep 2006 10:47:19 -0400
Message-ID: <24624.1158331639@sss.pgh.pa.us> (raw)
In-Reply-To: <200609151725.24976.achill@matrix.gatewaynet.com>
References: <200609151344.34058.achill@matrix.gatewaynet.com>
	<200609151725.24976.achill@matrix.gatewaynet.com>

Achilleas Mantzios <achill@matrix.gatewaynet.com> writes:
> What considerations should someone take if he is about to just
> cp -r <path_to_some_other_pgsql_data_path>/data .
> .i.e. creating the PGDATA dir *not* following the standard initdb procedure

If you copy the *entire* data tree (data, xlog, clog, any outside
tablespaces), and use exactly the same Postgres executables at both
ends, then it should pretty much Just Work.

> chown -R postgres:postgres ./data
> (new postgres user on the new SUSE might have a different uid/gid than the 
> original Debian),

This is OK.

> I'd suppose this might work on a test system, but should someone
> rely on it for a critical production system?

As long as the DBA has practiced beforehand ;-), sure.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <24624.1158331639@sss.pgh.pa.us>
Permalink:  ../24624.1158331639@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24624.1158331639@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, achill@matrix.gatewaynet.com
  Subject: Re: Postgresql 7.4 migration to (partially) new disks
  In-Reply-To: <24624.1158331639@sss.pgh.pa.us>
  References: <200609151344.34058.achill@matrix.gatewaynet.com> <200609151725.24976.achill@matrix.gatewaynet.com> <24624.1158331639@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox