Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avDqO-0008Ba-CJ for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 01:00:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avDqN-0008Lf-Tj for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 01:00:43 +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.84_2) (envelope-from ) id 1avDqN-0008LZ-6V for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 01:00:43 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avDqK-0002f3-Aj for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 01:00:42 +0000 Received: by mail-lf0-x231.google.com with SMTP id c126so38600352lfb.2 for ; Tue, 26 Apr 2016 18:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=LNMoZqnk0Ft53Uy63xkrK4gi8lpvIKtdyoyixtSavkY=; b=bOqFJQsTMVeDHrbopzuN522ygCkEhOa9zhxmgqT/E5llwMI7cXdcFc/qpwAP5bK2Vx NDG4WvnHJaXDOjpd3r83349+0ZXWxaKmCiIxeeui5jRhsKLfed0HDv6+XxdMRodcZkXw PlcggjqEn06a/5SosNXGJ4nXwBt82mKn7Ocw4L9J/qVTklKkfl9oLv/urRCOWRzm6JdG UKRerPGWHYfiqLp3iaZ921baDIthcEYisnp3ZbpIqdSUq7Y2umBNk3H4xXrUTk6PFRIK LUnjWY6lCDvHxbkg3kK+pab5AL2drzN3bEsee0vFTyeorbKv+Hskz1yhqqOH4A3UqBQU Ezuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=LNMoZqnk0Ft53Uy63xkrK4gi8lpvIKtdyoyixtSavkY=; b=dsYdCN7kN2EjF8Y21dtnGi4CkJoKKyo8FwcVV5bgkNu8W/sppCe5qtQv0o+o1+MU0K jxIDrlhCU5ZKNVmT4toypEUSoz0j8UXYGuXAqFHsFuieRkHngODJGy+gObHekdu3iYoR buoi/EW33VuikumIKLxkIkcWQSMtL3zw6cGnTl4D7Nz4boOPNhR4kbw/uQZcIbl1Oqup wcHzanDxO9P6aQSW0XaJlhqTeew1P+k6w98AY43NrljLENw/mGV0CuPelVNFeGWqFwpJ lf3bQOsAxBYW6ZB8Cgt4hwtN2FIAau0N/yOwK44m3kUlZGgoUowGgVmSKHmjR7A4kpvK MFlQ== X-Gm-Message-State: AOPr4FUUorPwYPDG/bnW7EOJIYvWMh5riagYV7z8ldLNRvoIzHv4Xyk9peHsLKi8cKlcadLOLE/xSckKte5P4Q== MIME-Version: 1.0 X-Received: by 10.112.61.39 with SMTP id m7mr2475121lbr.72.1461718838569; Tue, 26 Apr 2016 18:00:38 -0700 (PDT) Received: by 10.112.4.234 with HTTP; Tue, 26 Apr 2016 18:00:38 -0700 (PDT) In-Reply-To: <20160427004501.GF13058@momjian.us> References: <20160427004501.GF13058@momjian.us> Date: Tue, 26 Apr 2016 21:00:38 -0400 Message-ID: Subject: Re: [COMMITTERS] pgsql: pg_upgrade: Convert old visibility map format to new format. From: Robert Haas To: Bruce Momjian Cc: "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 Tue, Apr 26, 2016 at 8:45 PM, Bruce Momjian 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