pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: Matthias van de Meent <boekewurm+postgres@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum
Date: Thu, 13 Jan 2022 18:15:49 -0800
Message-ID: <20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de> (raw)
In-Reply-To: <CAH2-WzkuGdm6-7euVQaGBK=BD6sOZJckgnkx3XWwYNB_ysjGbQ@mail.gmail.com>
References: <20211111030821.2xxl75qfkynaga4j@alap3.anarazel.de>
	<20211116023918.5g6d6izevronx76m@alap3.anarazel.de>
	<CAH2-Wz=w6wVbat4B=HQTzim5ki=NyPhT6FxWPST=tN2+BjHrpw@mail.gmail.com>
	<20211122175914.ayk6gg6nvdwuhrzb@alap3.anarazel.de>
	<CAH2-Wzk+=kCS5SMMQ++s5vX9NmWKxJmOBfU2wqR-n78cOYFgfA@mail.gmail.com>
	<20211122223436.ov3qa27pakxay6z7@alap3.anarazel.de>
	<20211211045710.ljtuu4gfloh754rs@alap3.anarazel.de>
	<CAH2-WzkNr0t2e9Vr8T8QZNzA1Vze9C7s5-=61nhz2gHAooW05Q@mail.gmail.com>
	<20220112192508.vibr6o64h7sy7mbw@alap3.anarazel.de>
	<CAH2-WzkuGdm6-7euVQaGBK=BD6sOZJckgnkx3XWwYNB_ysjGbQ@mail.gmail.com>

On 2022-01-12 13:05:45 -0800, Peter Geoghegan wrote:
> On Wed, Jan 12, 2022 at 11:25 AM Andres Freund <andres@anarazel.de> wrote:
> > > Any blockers?
> >
> > I'm just struggling with / procrastinating on the commit message, tbh. The
> > whole issue is kinda complicated to explain... :/

After struggling some more, I *finally* pushed the fix and the new assertions.


Thanks for the bug report, investigation, review, etc!


> I think that it would make sense for the commit message to frame the
> problem as: pruneheap.c doesn't take sufficient care when traversing
> HOT chains to determine their full extent, for the purposes of
> pruning. There was a general lack of robustness, and the snapshot
> scalability work happened to run into that, resulting in hot chain
> corruption under very specific conditions.
>
> If I was in your position I think I would resist framing the problem
> in this way; I'd probably be concerned that it would come off as
> shifting the blame elsewhere. This high level explanation of things
> makes the most sense to me, though. Surely that's the most important
> thing.

Thanks!





view thread (90+ messages)  latest in thread

Message-ID: <20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de>
Permalink:  ../20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de

 · 

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-bugs@postgresql.org
  Cc: andres@anarazel.de, pg@bowt.ie, 9erthalion6@gmail.com, exclusion@gmail.com, boekewurm+postgres@gmail.com
  Subject: Re: BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum
  In-Reply-To: <20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de>
  References: <20211111030821.2xxl75qfkynaga4j@alap3.anarazel.de> <20211116023918.5g6d6izevronx76m@alap3.anarazel.de> <CAH2-Wz=w6wVbat4B=HQTzim5ki=NyPhT6FxWPST=tN2+BjHrpw@mail.gmail.com> <20211122175914.ayk6gg6nvdwuhrzb@alap3.anarazel.de> <CAH2-Wzk+=kCS5SMMQ++s5vX9NmWKxJmOBfU2wqR-n78cOYFgfA@mail.gmail.com> <20211122223436.ov3qa27pakxay6z7@alap3.anarazel.de> <20211211045710.ljtuu4gfloh754rs@alap3.anarazel.de> <CAH2-WzkNr0t2e9Vr8T8QZNzA1Vze9C7s5-=61nhz2gHAooW05Q@mail.gmail.com> <20220112192508.vibr6o64h7sy7mbw@alap3.anarazel.de> <CAH2-WzkuGdm6-7euVQaGBK=BD6sOZJckgnkx3XWwYNB_ysjGbQ@mail.gmail.com> <20220114021549.m6ugihzjmsunv3jd@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