Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz22F-0005Af-BS for pgsql-admin@arkaria.postgresql.org; Tue, 16 Jul 2013 09:59:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uz22E-0006XT-64 for pgsql-admin@arkaria.postgresql.org; Tue, 16 Jul 2013 09:59:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz22C-0006XK-37 for pgsql-admin@postgresql.org; Tue, 16 Jul 2013 09:59:04 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz224-0005WF-N0 for pgsql-admin@postgresql.org; Tue, 16 Jul 2013 09:59:03 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Uz223-0007Po-9E; Tue, 16 Jul 2013 05:58:55 -0400 Date: Tue, 16 Jul 2013 05:58:55 -0400 From: Bruce Momjian To: Sergey Konoplev Cc: Wells Oliver , pgsql-admin Subject: Re: Upgrading from 9.1 to 9.2 - master AND slave Message-ID: <20130716095855.GA28068@momjian.us> 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-06-14) X-Pg-Spam-Score: -0.4 (/) 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 Sun, Jul 14, 2013 at 09:31:16PM -0700, Sergey Konoplev wrote: > On Wed, Jul 10, 2013 at 2:14 PM, Wells Oliver wrote: > > Following up to my earlier post: I have a master and a slave server (using > > WAL), both 9.1. My 9.2 upgrade process is: > > > > 1) stop postgres on both servers > > 2) run pg_upgrade --link on both servers > > 3) change ports so 9.2 is on 5432, 9.1 on 5433 > > 4) restart > > > > Is this the best way to do it and ensure that the WAL is still being created > > and the master/slave relationship properly maintained? > > The problem is that after pg_upgrade the system catalog on the servers > wont match. Therefore you need to rebuild your slave from scratch. > > There were some ideas around rsync [1], however, nobody proved that > they work appropriately. > > [1] http://www.postgresql.org/message-id/20120320204916.GB26163@momjian.us Yes, though there was discussion about this at PGCon 2013 and I plan to work on this for 9.4. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin