Re: PANIC in heap_delete during ALTER TABLE

Jeff Davis <pgsql@j-davis.com>

From: Jeff Davis <pgsql@j-davis.com>
To: Robins Tharakan <tharakan@gmail.com>
Cc: pgsql-bugs@postgresql.org
Date: 2022-09-22T18:47:06Z
Lists: pgsql-bugs
On Wed, 2022-09-21 at 20:48 +0930, Robins Tharakan wrote:
> Thanks Jeff for picking this up.
> 
> > I plan to commit something close to this patch in about 48 hours
> > and
> > backport to 12, like 5f12bc94dc was.
> > 
> Using the repro provided, I can confirm that the patch works on
> master
> (6bcda4a7212) and thus also +1 on going ahead with pushing this.

Committed.

-- 
Jeff Davis
PostgreSQL Contributor Team - AWS





Commits

  1. Fix race condition where heap_delete() fails to pin VM page.

  2. Avoid improbable PANIC during heap_update.

  3. Remove tupgone special case from vacuumlazy.c.