pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: pg_upgrade: Convert old visibility map format to new format.
Date: Tue, 26 Apr 2016 21:00:38 -0400
Message-ID: <CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com> (raw)
In-Reply-To: <20160427004501.GF13058@momjian.us>
References: <E1aeQzK-0004Pm-K0@gemulon.postgresql.org>
	<20160427004501.GF13058@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Tue, Apr 26, 2016 at 8:45 PM, Bruce Momjian <bruce@momjian.us> wrote:
> 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.

That's good!

All the commits related to this topic could use extra-careful review
and testing.  If Masahiko-san got anything wrong, or I did, this could
eat people's data in ways that are very hard to track down.

So I hope we were both extra-smart while working on this patch.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (4+ messages)  latest in thread

Message-ID: <CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com>
Permalink:  ../CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: robertmhaas@gmail.com, bruce@momjian.us, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: pg_upgrade: Convert old visibility map format to new format.
  In-Reply-To: <CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com>
  References: <E1aeQzK-0004Pm-K0@gemulon.postgresql.org> <20160427004501.GF13058@momjian.us> <CA+Tgmoa7u6Ec7oDMOO9p09Q6Sar2D5pyXsrt6Z_F2tv7P+7sUQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox