Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UwyqR-0005eP-Nq for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2013 18:10:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UwyqR-000138-4t for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2013 18:10:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UwyqQ-000132-GA for pgsql-admin@postgresql.org; Wed, 10 Jul 2013 18:10:26 +0000 Received: from smtp202.dfw.emailsrvr.com ([67.192.241.202]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UwyqM-00067C-26 for pgsql-admin@postgresql.org; Wed, 10 Jul 2013 18:10:26 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id B28A82581EF for ; Wed, 10 Jul 2013 14:10:20 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp20.relay.dfw1a.emailsrvr.com (Authenticated sender: cernst-AT-zvelo.com) with ESMTPSA id 79C9225812E for ; Wed, 10 Jul 2013 14:10:20 -0400 (EDT) Message-ID: <51DDA38F.1040505@zvelo.com> Date: Wed, 10 Jul 2013 12:10:23 -0600 From: Chris Ernst Organization: zvelo, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Upgrading from 9.1 to 9.2 in place, same machine References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 07/10/2013 11:53 AM, Wells Oliver wrote: > 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. You can't do this with streaming replication. But you can with slony. Just replicate from 9.1 as master to 9.2 as a slave. Once they are fully in sync, promote 9.2 to master. Note that you will have to restart postgres at least once to move the 9.2 port to the same as the 9.1 port when you switch. SO it won't be zero down time, but pretty darn close. - Chris -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin