Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqPkV-00030b-6n for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 21:24:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqPkT-00032p-EH for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 21:24:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqPkT-00031s-4q for pgsql-bugs@lists.postgresql.org; Thu, 16 Aug 2018 21:24:05 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fqPkO-0007XY-ST for pgsql-bugs@postgresql.org; Thu, 16 Aug 2018 21:24:02 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fqPkM-0006RX-TB; Thu, 16 Aug 2018 17:23:58 -0400 Date: Thu, 16 Aug 2018 17:23:58 -0400 From: Bruce Momjian To: =?iso-8859-1?Q?Mart=EDn_Marqu=E9s?= Cc: DEGLAVE Remi , "pgsql-bugs@postgresql.org" , Michael Paquier Subject: Re: [PG_UPGRADE] 9.6 to 10.5 Message-ID: <20180816212358.GA24023@momjian.us> References: <20180810161245.GA7815@momjian.us> <15fa3462-a3da-2134-1c4e-8127f50ed304@2ndquadrant.com> <20180814212335.GD23476@momjian.us> <20180816163620.GE4634@momjian.us> <20180816175835.GF4634@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Aug 16, 2018 at 04:41:04PM -0300, Martín Marqués wrote: > 2018-08-16 14:58 GMT-03:00 Bruce Momjian : > > On Thu, Aug 16, 2018 at 12:36:20PM -0400, Bruce Momjian wrote: > >> I think we just need to add an error message to say the server must be > >> shut down as a _primary_ server, not as a standby server, and we can > >> recommend to read the documentation on the use of rsync. > > > > Attached is a proposed patch. > > The logic in the patch is ok, but I'd use a different error message, > one that just mentions that you can only upgrade a primary node: > > The source cluster was shut down while in recovery mode, but > pg_upgrade expected a primary node. Well, if people are hitting the error because they are using pg_upgrade on standbys, I assume we should give them some instruction that you should not do that, no? > The error referring to the target node should be similar, although I > can't think of how to phrase it without saying "how on earth did you > get a standby for the target! RTFM!" :-D Yeah, for consistency I made it match. ;-) -- 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 +