From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Perform a lot more sanity checks when freezing tuples.
Date: Fri, 15 Dec 2017 02:28:56 +0000
Message-ID: <E1ePfk8-0005Qj-4C@gemulon.postgresql.org> (raw)
Perform a lot more sanity checks when freezing tuples.
The previous commit has shown that the sanity checks around freezing
aren't strong enough. Strengthening them seems especially important
because the existance of the bug has caused corruption that we don't
want to make even worse during future vacuum cycles.
The errors are emitted with ereport rather than elog, despite being
"should never happen" messages, so a proper error code is emitted. To
avoid superflous translations, mark messages as internal.
Author: Andres Freund and Alvaro Herrera
Reviewed-By: Alvaro Herrera, Michael Paquier
Discussion: https://postgr.es/m/20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de
Backpatch: 9.3-
Branch
------
REL9_3_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/4800f16a7ad08fe4145cdbbfedb9f63fdc282e28
Modified Files
--------------
src/backend/access/heap/heapam.c | 133 ++++++++++++++++++++++++++++------
src/backend/access/heap/rewriteheap.c | 5 +-
src/backend/commands/vacuumlazy.c | 15 +++-
src/include/access/heapam.h | 5 +-
src/include/access/heapam_xlog.h | 2 +
5 files changed, 132 insertions(+), 28 deletions(-)
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: andres@anarazel.de
Subject: Re: pgsql: Perform a lot more sanity checks when freezing tuples.
In-Reply-To: <E1ePfk8-0005Qj-4C@gemulon.postgresql.org>
References: <E1ePfk8-0005Qj-4C@gemulon.postgresql.org>
* 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