From: Andres Freund <andres@anarazel.de>
To: Alvaro Herrera <alvherre@2ndQuadrant.com>
Cc: Wood, Dan <hexpert@amazon.com>
Cc: Peter Geoghegan <pg@bowt.ie>
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: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Date: Thu, 7 Dec 2017 12:17:06 -0800
Message-ID: <20171207201706.fooygpgvlvfeas2t@alap3.anarazel.de> (raw)
In-Reply-To: <20171206162115.kdsd2fnipyswonir@alvherre.pgsql>
References: <20171114030341.movhteyakqeqx5pm@alap3.anarazel.de>
<20171206162115.kdsd2fnipyswonir@alvherre.pgsql>
Hi,
On 2017-12-06 13:21:15 -0300, Alvaro Herrera wrote:
> I think you've done a stellar job of identifying what the actual problem
> was. I like the new (simpler) coding of that portion of
> HeapTupleSatisfiesVacuum.
Thanks!
> freeze-the-dead is not listed in isolation_schedule; an easy fix.
Yea, I'd sent an update about that, stupidly forgot git amend the
commit...
> I confirm that the test crashes with an assertion failure without the
> code fix, and that it doesn't with it.
>
> I think the comparison to OldestXmin should be reversed:
>
> if (!TransactionIdPrecedes(xmax, OldestXmin))
> return HEAPTUPLE_RECENTLY_DEAD;
>
> return HEAPTUPLE_DEAD;
>
> This way, an xmax that has exactly the OldestXmin value will return
> RECENTLY_DEAD rather DEAD, which seems reasonable to me (since
> OldestXmin value itself is supposed to be still possibly visible to
> somebody).
Yes, I think you're right. That's a bug.
> Your commit message does a poor job of acknowledging prior work on
> diagnosing the problem starting from Dan's initial test case and patch.
Yea, you're right. I was writing it with 14h of jetlag, apparently that
does something to your brain...
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, alvherre@2ndQuadrant.com, hexpert@amazon.com, pg@bowt.ie, 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: <20171207201706.fooygpgvlvfeas2t@alap3.anarazel.de>
References: <20171114030341.movhteyakqeqx5pm@alap3.anarazel.de> <20171206162115.kdsd2fnipyswonir@alvherre.pgsql> <20171207201706.fooygpgvlvfeas2t@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