Re: TRAP: FailedAssertion("tabstat->trans == trans", File: "pgstat_relation.c", Line: 508

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Erik Rijkers <er@xs4all.nl>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-16T18:23:23Z
Lists: pgsql-hackers
Hi,

On 2022-04-16 09:37:55 +0200, Erik Rijkers wrote:
> I get this crash running the attached test program. On my slow-disked and
> old desktop it occurs once in 20 or so runs (it is yet another installment
> of an old test that runs pgbench with logical replication).
>
> 15devel compiled from d3609dd25.
> 
> (The bash deletes stuff, and without my environment it will need some
> tweaking)

Any chance for a backtrace? I'll otherwise try to adjust the script, but ...

Greetings,

Andres Freund



Commits

  1. Don't report stats in LogicalRepApplyLoop() when in xact.