On Mon, Mar 5, 2018 at 7:10 PM, Claudio Freire <klaussfre...@gmail.com> wrote: >> Introducing any case that allows us to land on a recycled page, and >> reason that it must at least not be the page we were looking for based >> on *any* criteria about the page itself seems very brittle. Yeah, it >> probably won't break in practice, but it's a bad design. > > How is this any different from btvacuumscan? > > I don't think it can be argued that somehow btvacuumscan has > permission to be brittle and the rest of the code doesn't.
VACUUM doesn't have to worry about concurrent page recycling because it is already the only thing that performs page deletion. It's already the process that has the exclusive right to give index pages back to the FSM. -- Peter Geoghegan