Hi, On 2026-01-29 13:06:22 -0500, Andres Freund wrote: > On 2026-01-29 12:50:38 -0500, Peter Geoghegan wrote: > > On Thu, Jan 29, 2026 at 12:42 PM Andres Freund <[email protected]> wrote: > > > > - /* > > > > - * We better not already hold a lock on the buffer. > > > > - */ > > > > Assert(entry->data.lockmode == BUFFER_LOCK_UNLOCK); > > > > > > > > > > Err, this should have been removed, I accidentally re-added the hunk while > > > experimenting. > > > > I've been running into this assertion failure from time to time while > > working on index prefetching. It seems to happen after a hard crash. > > I've just been running initdb whenever it happens. It would be nice to > > not have to do this again. > > Sure, I'm planning to give folks a bit longer to chime in whether the proposed > behavior is sane and will then push (with an amended commit message and the > fixup discussed here).
Pushed the fix now. Greetings, Andres Freund
