Re: PANIC in heap_delete during ALTER TABLE - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: PANIC in heap_delete during ALTER TABLE
Date
Msg-id CAH2-Wz=s-ZJJ++wnnKx70iBSCMQ_kiRHD+K3NUX3P3qQcRKAbg@mail.gmail.com
Whole thread Raw
In response to Re: PANIC in heap_delete during ALTER TABLE  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: PANIC in heap_delete during ALTER TABLE
List pgsql-bugs
On Wed, Sep 7, 2022 at 2:53 PM Jeff Davis <pgsql@j-davis.com> wrote:
> Yes, it looks like it's essentially the same issue.
>
> heap_delete() does recheck after locking the buffer correctly at the
> top, but there are other paths below which unlock/relock the buffer
> without checking to see if the VM pin should be acquired.

This certainly vindicates Tom's decision to backpatch his fix for the
heap_update() issue. Clearly this new variant bug can't have anything to do
with the 14-era behavioral change to lazy_vacuum_heap_page() from
commit 8523492d4e. That behavioral change was clearly a factor in the
heap_update() issue, but can't be relevant here. Since the repro we have
shows that 13 is also affected.

I wonder why it took this long to hear anything about it, though.
Maybe it just worked out that way because the earlier (or was it
later?) heap_update() issue created a public record that somebody like Robins
could find.


--
Peter Geoghegan



pgsql-bugs by date:

Previous
From: Jeff Davis
Date:
Subject: Re: PANIC in heap_delete during ALTER TABLE
Next
From: Ming
Date:
Subject: Postgres offset and limit bug