Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxNfs-0005Z3-8Z for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jul 2013 20:41:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UxNfq-0006S3-N5 for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jul 2013 20:41:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxNfp-0006Rw-G0 for pgsql-admin@postgresql.org; Thu, 11 Jul 2013 20:41:09 +0000 Received: from imx3.etecsa.cu ([200.55.152.137]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxNfl-0007nd-Kt for pgsql-admin@postgresql.org; Thu, 11 Jul 2013 20:41:08 +0000 Received: from Unknown ([192.168.91.45] helo=mn3.etecsa.cu) by imx3.etecsa.cu with ESMTP id rGeSNqEd72152; Thu, 11 Jul 2013 16:40:28 -0500 Received: (qmail 4941 invoked by uid 11185); 11 Jul 2013 21:41:16 -0000 Received: from 192.168.91.6 by mn3.etecsa.cu (envelope-from , uid 502) with qmail-scanner-2.08 (spamassassin: 3.2.5. Clear:RC:1(192.168.91.6):. Processed in 0.055546 secs); 11 Jul 2013 21:41:16 -0000 Received: from unknown (HELO webmail.etecsa.cu) ([192.168.91.6]) (envelope-sender ) by mn2.etecsa.cu (qmail-ldap-1.03) with SMTP for ; 11 Jul 2013 21:41:16 -0000 Received: from 192.168.207.54 (SquirrelMail authenticated user gilberto.castillo) by webmail.etecsa.cu with HTTP; Thu, 11 Jul 2013 15:41:51 -0500 (GMT+5) Message-ID: <53809.192.168.207.54.1373575311.squirrel@webmail.etecsa.cu> In-Reply-To: References: Date: Thu, 11 Jul 2013 15:41:51 -0500 (GMT+5) Subject: Re: Creating new cluster by copying directory? From: "Gilberto Castillo" To: "Wells Oliver" Cc: pgsql-admin@postgresql.org Reply-To: gilberto.castillo@etecsa.cu User-Agent: SquirrelMail/1.4.8-5.el5_4.10 MIME-Version: 1.0 X-Priority: 1 (Highest) Importance: High X-SpamTest-Envelope-From: gilberto.castillo@etecsa.cu X-SpamTest-Info: Profiles 48413 [Jul 11 2013] X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0285], KAS30/SDK/Release X-Anti-Virus: Kaspersky Mail Gateway, version: 5.6.28/RELEASE, bases: 20130711T121559 #10581261, check: 20130711 clean Content-Type: multipart/mixed; boundary="=rGeYNiMV72811=imx3.etecsa.cu=" X-Pg-Spam-Score: 0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is a multi-part message in MIME format. --=rGeYNiMV72811=imx3.etecsa.cu= Content-Disposition: inline Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit > 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 --=rGeYNiMV72811=imx3.etecsa.cu= Content-Type: text/plain Content-Disposition: inline --- This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu Visit our web-site: , --=rGeYNiMV72811=imx3.etecsa.cu= Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin --=rGeYNiMV72811=imx3.etecsa.cu=--