Re: pgsql: Avoid improbable PANIC during heap_update.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>, pgsql-committers(at)lists(dot)postgresql(dot)org, Jeff Davis <pgsql(at)j-davis(dot)com>
Subject: Re: pgsql: Avoid improbable PANIC during heap_update.
Date: 2022-10-01 05:09:19
Message-ID: CAH2-Wz=gJHeAyvu-rrNN=0GcXMcE2+mm4wW=gLWDjb6d=SWYFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Fri, Sep 30, 2022 at 9:38 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I'm too tired to think this through completely clearly, but this
> sounds right, and what it seems to imply is that this race condition
> exists in all PG versions.

I think that the heap_delete() issue is probably in all PG versions.

> Which would imply that we need to do the
> work to back-patch these three fixes into v11/v10.

I am not aware of any reason why we should need the heap_update()
fixes to be backpatched any further. Though I will need to think about
it some more.

> So what is bothering me about this line of thought is: how come
> there have not been reports of these failures in older branches?
> Is there some aspect we're not thinking about that masks the bug?

The likely explanation is that Robins was able to find the
heap_delete() bug by throwing lots of resources (human effort and
machine time) into it. It literally took weeks of adversarial
stress-testing to find the bug. It's entirely possible and perhaps
likely that this isn't representative of real world conditions in some
crucial way.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-10-01 05:13:13 Re: pgsql: Avoid improbable PANIC during heap_update.
Previous Message Tom Lane 2022-10-01 04:38:00 Re: pgsql: Avoid improbable PANIC during heap_update.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-10-01 05:13:13 Re: pgsql: Avoid improbable PANIC during heap_update.
Previous Message Tom Lane 2022-10-01 04:38:00 Re: pgsql: Avoid improbable PANIC during heap_update.