Re: Allow cancelling VACUUM of nbtrees with corrupted right links

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@postgresql.org
Date: 2018-06-27T19:18:45Z
Lists: pgsql-hackers
Hi,

On 2018-06-27 12:16:29 -0700, Andres Freund wrote:
> I couldn't see how to fix the _bt_unlink_halfdead_page() right-sib loop,
> because we always hold a lock. But given that that loop appears to
> mostly be dead code, that doesn't seem too bad?

It's possibly wrong that it's unreachable - I've just not managed to get
there. If somebody has an idea how to build a reproducible case to reach
it...

- Andres


Commits

  1. Check for interrupts inside the nbtree page deletion code.