Re: BUG #19082: Failing assert in index scan - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: BUG #19082: Failing assert in index scan
Date
Msg-id CAH2-WzmbZevxTOZdtqz2JL7THZGVCG0uEfv5-J-p2ZrpJOe8xA@mail.gmail.com
Whole thread Raw
In response to BUG #19082: Failing assert in index scan  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19082: Failing assert in index scan
List pgsql-bugs
On Fri, Oct 10, 2025 at 5:51 AM PG Bug reporting form
<noreply@postgresql.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



pgsql-bugs by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: [BUGS] BUG #11500: PRIMARY KEY index not being used
Next
From: "Matthijs van der Vleuten"
Date:
Subject: Re: BUG #19082: Failing assert in index scan