Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uwyvw-0005tJ-8n for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2013 18:16:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uwyvv-0003fV-JU for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2013 18:16:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uwyvu-0003fG-Tq for pgsql-admin@postgresql.org; Wed, 10 Jul 2013 18:16:06 +0000 Received: from proofpoint1.mail.rice.edu ([128.42.201.100] helo=pp1.rice.edu) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uwyvo-0006DF-1I for pgsql-admin@postgresql.org; Wed, 10 Jul 2013 18:16:06 +0000 Received: from pps.filterd (pp1.rice.edu [127.0.0.1]) by pp1.rice.edu (8.14.5/8.14.5) with SMTP id r6A8Hwxu002100; Wed, 10 Jul 2013 13:15:56 -0500 Received: from mh2.mail.rice.edu (mh2.mail.rice.edu [128.42.201.21]) by pp1.rice.edu with ESMTP id 1ddpxdt50u-1; Wed, 10 Jul 2013 13:15:56 -0500 X-Virus-Scanned: by amavis-2.7.0 at mh2.mail.rice.edu, auth channel X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh2.mail.rice.edu (Postfix) with ESMTP id 2558250043F; Wed, 10 Jul 2013 13:15:56 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id 4359C100720; Wed, 10 Jul 2013 13:16:00 -0500 (CDT) Date: Wed, 10 Jul 2013 13:16:00 -0500 From: "ktm@rice.edu" To: Jonathan Nalley Cc: pgsql-admin@postgresql.org Subject: Re: Upgrading from 9.1 to 9.2 in place, same machine Message-ID: <20130710181600.GG3001@aart.rice.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-Pg-Spam-Score: -2.2 (--) 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 On Wed, Jul 10, 2013 at 02:08:04PM -0400, Jonathan Nalley wrote: > On Wed, Jul 10, 2013 at 1:53 PM, Wells Oliver wrote: > > I have 9.1 running on 5432, and 9.2 running on 5433. The 9.1 database size > > is 153g. 9.1 is actively used by systems, 9.2 is just sitting there empty. > > > > I'd like to move the 9.1 database to 9.2 without any down time, and ensuring > > that no data is lost. > > > > My original idea was to make 9.2 a slave of 9.1, then switch it over. > > > > Is there a better idea? Thanks for any tips. > > have you looked at simply using pg_upgrade ? > > http://www.postgresql.org/docs/9.2/static/pgupgrade.html > Hi Wells, I would definitely consider pgupgrade. You could test it first to get some timings. I would make a 9.1 slave on the same box and run pg_upgrade against it. Then if you have a problem you can restart using the original. You can also use something like slony or bucardo to replicate from 9.1 to 9.2 and then failover to it that way. Regards, Ken -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin