Re: BUG #19082: Failing assert in index scan

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: postgresql(at)zr40(dot)nl, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19082: Failing assert in index scan
Date: 2025-10-10 15:40:52
Message-ID: CAH2-WzmbZevxTOZdtqz2JL7THZGVCG0uEfv5-J-p2ZrpJOe8xA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Oct 10, 2025 at 5:51 AM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> Last week, I've noticed a crash due to a failed assertion that was
> consistently being triggered by an application every 10 seconds. Here's the
> log:
>
> ---
> TRAP: failed Assert("!XLogRecPtrIsInvalid(so->currPos.lsn)"), File:
> "./build/../src/backend/access/nbtree/nbtutils.c", Line: 1782, PID: 394782
> postgres: mastodon mastodon_production [local]

Does this involve an unlogged table/index?

> Since I noticed that the stack trace mentioned btrees, I reindexed all
> indexes in this database and that appeared to resolve the symptom.

That would be effective in the short term, though only because it'll
reduce the number of dead tuples that can be LP_DEAD set in the index
in the short term.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Matthijs van der Vleuten 2025-10-10 16:12:49 Re: BUG #19082: Failing assert in index scan
Previous Message Marko Tiikkaja 2025-10-10 14:52:59 Re: [BUGS] BUG #11500: PRIMARY KEY index not being used