Re: Buffer locking is special (hints, checksums, AIO writes) - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Buffer locking is special (hints, checksums, AIO writes)
Date
Msg-id CAH2-WznefBra4g8pGxrH8Ch00ZP29jkGFCQLRUJszxx+62XLGg@mail.gmail.com
Whole thread Raw
In response to Re: Buffer locking is special (hints, checksums, AIO writes)  (Andres Freund <andres@anarazel.de>)
Responses Re: Buffer locking is special (hints, checksums, AIO writes)
List pgsql-hackers
On Thu, Jan 29, 2026 at 12:42 PM Andres Freund <andres@anarazel.de> 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.

--
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Consistently use the XLogRecPtrIsInvalid() macro
Next
From: Nathan Bossart
Date:
Subject: Re: Pasword expiration warning