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 1fzBfA-0005Qg-VS for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Sep 2018 02:10:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzBf8-0001Qx-Tz for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Sep 2018 02:10:50 +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 1fzBf8-0001Qm-K6 for pgsql-bugs@lists.postgresql.org; Mon, 10 Sep 2018 02:10:50 +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 1fzBf1-0006sN-4Y for pgsql-bugs@lists.postgresql.org; Mon, 10 Sep 2018 02:10:49 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fzBf0-00062p-BP; Sun, 09 Sep 2018 22:10:42 -0400 Date: Sun, 9 Sep 2018 22:10:42 -0400 From: Bruce Momjian To: kalyanithumati@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly. Message-ID: <20180910021042.GA22703@momjian.us> References: <153650968546.23141.16889932223808209670@wrigleys.postgresql.org> <20180909222224.GA13949@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180909222224.GA13949@momjian.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Sep 9, 2018 at 06:22:24PM -0400, Bruce Momjian wrote: > On Sun, Sep 9, 2018 at 04:14:45PM +0000, PG Bug reporting form wrote: > What 9.4.19 fixed is that users were doing a pg_ctl -m immediate, and > then running pg_upgrade, and getting _silently_ corrupted upgrades. > 9.4.19 fixes this so pg_upgrade properly complains when this happens. > > You should only see that error if you are doing "immediate" shutdowns of > your server, and this is not supported, and throws ane error. Are you > seeing the pg_upgrade error message when you do a _clean_ shutdown of > your servers? Also, you can't run pg_upgrade directly on standby servers. You have to either make it a primary server or use the rsync instructions in the pg_upgrade docs. The next minor release will have a better error message on this. -- 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 +