From: Gilberto Castillo <gilberto.castillo@etecsa.cu>
To: Wells Oliver <wellsoliver@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Creating new cluster by copying directory?
Date: Thu, 11 Jul 2013 15:41:51 -0500 (GMT+5)
Message-ID: <53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu> (raw)
In-Reply-To: <CAOC+FBWPBS1_nH4mTcC9qr_c6Rr410d=LR6L9LRLnDDS=zz68A@mail.gmail.com>
References: <CAOC+FBWPBS1_nH4mTcC9qr_c6Rr410d=LR6L9LRLnDDS=zz68A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
> All: it would take ~4 hours to pg_restore a backup. I want to quickly
> create a duplicate cluster (for testing). My idea:
>
> 1. pg_ctlcreatecluster 9.1 test
> 2. rm /var/lib/postgresql/9.1/test/*
> 2. cp /var/lib/postgresql/9.1/main /var/lib/postgresql/9.1/test
> 3. pg_ctlcluster 9.1 test start
>
> Is this viable? If not, is there another way to create a duplicate cluster
> in a timely fashion?
Test Repmgr works with the same philosophy. ;-)
Saludos,
Gilberto Castillo
La Habana, Cuba
---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gilberto.castillo@etecsa.cu, wellsoliver@gmail.com
Subject: Re: Creating new cluster by copying directory?
In-Reply-To: <53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu>
* 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