Re: Buffer locking is special (hints, checksums, AIO writes)

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Kirill Reshke <reshkekirill(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: Buffer locking is special (hints, checksums, AIO writes)
Date: 2026-01-29 17:50:38
Message-ID: CAH2-WznefBra4g8pGxrH8Ch00ZP29jkGFCQLRUJszxx+62XLGg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 29, 2026 at 12:42 PM Andres Freund <andres(at)anarazel(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-01-29 17:53:08 Re: Pasword expiration warning
Previous Message Álvaro Herrera 2026-01-29 17:45:12 Re: Consistently use the XLogRecPtrIsInvalid() macro