From: Andres Freund <andres@anarazel.de>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Wood, Dan <hexpert@amazon.com>
Cc: pgsql-committers@postgresql.org, "Wong, Yi Wen" <yiwong@amazon.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Date: Fri, 15 Dec 2017 10:58:11 -0800
Message-ID: <20171215185811.zrc55yv4kvkp7hxw@alap3.anarazel.de> (raw)
In-Reply-To: <CAH2-Wzn=XUWcL5pNUUkHDYXmsXpiB7ArP_U2=sHqv9GG3-5ufg@mail.gmail.com>
References: <20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de>
<20171102124947.hshl7znx6ixy62pf@alvherre.pgsql>
<20171102130551.i2w33sqdw3bdvetn@alap3.anarazel.de>
<20171103145330.5ycjoje5s6lfwxps@alap3.anarazel.de>
<20171114030341.movhteyakqeqx5pm@alap3.anarazel.de>
<20171215010029.3dxx56vjlymudvwo@alap3.anarazel.de>
<20171215023059.oeyindn57oeis5um@alap3.anarazel.de>
<CAH2-Wzn=XUWcL5pNUUkHDYXmsXpiB7ArP_U2=sHqv9GG3-5ufg@mail.gmail.com>
On 2017-12-15 10:46:05 -0800, Peter Geoghegan wrote:
> On Thu, Dec 14, 2017 at 6:30 PM, Andres Freund <andres@anarazel.de> wrote:
> > Pushed this way. Moved some more relfrozenxid/relminmxid tests outside
> > of the cutoff changes, polished some error messages.
> >
> >
> > Alvaro, Michael, Peter, and everyone else I'd greatly appreciate if you
> > could have a look at the backported version, just about everything but
> > v10 had conflicts, some of them not insubstantial.
>
> I have one minor piece of feedback on the upgrading of assertions to
> ereport()s with ERRCODE_DATA_CORRUPTION: It would be nice if you could
> upgrade the raw elog() "can't happen" error within
> IndexBuildHeapRangeScan() to be an ereport() with
> ERRCODE_DATA_CORRUPTION. I'm referring to the "failed to find parent
> tuple for heap-only tuple" error, which I think merits being a real
> user-visible error, just like the relfrozenxid/relminmxid tests are
> now. As you know, the enhanced amcheck will sometimes detect
> corruption due to this bug by hitting that error.
I'm not opposed to that, it just seems independent from this thread. Not
sure I really want to go around and backpatch such a change, that code
has changed a bit between branches. Happy to do so on master.
Greetings,
Andres Freund
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, pg@bowt.ie, alvherre@alvh.no-ip.org, hexpert@amazon.com, yiwong@amazon.com, michael.paquier@gmail.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
In-Reply-To: <20171215185811.zrc55yv4kvkp7hxw@alap3.anarazel.de>
References: <20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de> <20171102124947.hshl7znx6ixy62pf@alvherre.pgsql> <20171102130551.i2w33sqdw3bdvetn@alap3.anarazel.de> <20171103145330.5ycjoje5s6lfwxps@alap3.anarazel.de> <20171114030341.movhteyakqeqx5pm@alap3.anarazel.de> <20171215010029.3dxx56vjlymudvwo@alap3.anarazel.de> <20171215023059.oeyindn57oeis5um@alap3.anarazel.de> <CAH2-Wzn=XUWcL5pNUUkHDYXmsXpiB7ArP_U2=sHqv9GG3-5ufg@mail.gmail.com> <20171215185811.zrc55yv4kvkp7hxw@alap3.anarazel.de>
* 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