Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avDbH-0007Nk-T7 for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 00:45:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avDbH-0003W4-6j for pgsql-committers@arkaria.postgresql.org; Wed, 27 Apr 2016 00:45:07 +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 1avDbG-0003Vj-Td for pgsql-committers@postgresql.org; Wed, 27 Apr 2016 00:45:06 +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 1avDbD-0004ig-3A; Wed, 27 Apr 2016 00:45:06 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1avDbB-0003Pi-Mw; Tue, 26 Apr 2016 20:45:01 -0400 Date: Tue, 26 Apr 2016 20:45:01 -0400 From: Bruce Momjian To: Robert Haas Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: pg_upgrade: Convert old visibility map format to new format. Message-ID: <20160427004501.GF13058@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.23 (2014-03-12) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Fri, Mar 11, 2016 at 05:36:34PM +0000, Robert Haas wrote: > pg_upgrade: Convert old visibility map format to new format. > > Commit a892234f830e832110f63fc0a2afce2fb21d1584 added a second bit per > page to the visibility map, but pg_upgrade has been unaware of it up > until now. Therefore, a pg_upgrade from an earlier major release of > PostgreSQL to any commit preceding this one and following the one > mentioned above would result in invalid visibility map contents on the > new cluster, very possibly leading to data corruption. This plugs > that hole. > > Masahiko Sawada, reviewed by Jeff Janes, Bruce Momjian, Simon Riggs, > Michael Paquier, Andres Freund, me, and others. I have tested the current git trees of all supported versions of Postgres in all possible pg_upgrade combinations and they all worked perfectly. -- 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-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers