Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtFju-0002jj-Pu for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Sep 2017 16:14:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtFju-0006Xw-Cm for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Sep 2017 16:14:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtFY5-0000hl-Pr for pgsql-hackers@postgresql.org; Sat, 16 Sep 2017 16:02:29 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dtFY1-0008Eb-0A for pgsql-hackers@postgresql.org; Sat, 16 Sep 2017 16:02:29 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dtFXw-0002XC-Pu; Sat, 16 Sep 2017 12:02:20 -0400 Date: Sat, 16 Sep 2017 12:02:20 -0400 From: Bruce Momjian To: Stephen Frost Cc: Andreas Joseph Krogh , Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Clarification in pg10's pgupgrade.html step 10 (upgrading standby servers) Message-ID: <20170916160220.GD9874@momjian.us> References: <20170912230020.GD6766@momjian.us> <20170913132627.GG6766@momjian.us> <20170913161633.GW4628@tamriel.snowman.net> <20170914191250.GB6595@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170914191250.GB6595@momjian.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Thu, Sep 14, 2017 at 03:12:50PM -0400, Bruce Momjian wrote: > I talked with Stephen about this on IM. The issue is that if you don't > do --delete, and there are files in the primary that are not in the > standby, they are copied, but files in the standby and not in the > primary are kept. This could lead to mixed primary/standby log files, > or worse. Using --delete means the new standby exactly matches the new > primary and all the steps you need to adjust after a base backup are the > same. > > I added a mention of rsync --dry-run per Stephen's suggestion. > > I have also added a paragraph from Magnus that I developed via IM that > explains that you can use rsync to upgrade one standby from another > standby, if the standby has not been started. Patch applied through 9.5. Updated docs at: http://momjian.us/pgsql_docs/pgupgrade.html -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers