Re: [BUG] failed assertion in EnsurePortalSnapshotExists()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [BUG] failed assertion in EnsurePortalSnapshotExists()
Date: 2021-09-27 19:44:19
Message-ID: 2767594.1632771859@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com> writes:
> I recently observed a failed assertion in EnsurePortalSnapshotExists().

Hmm, interesting. If I take out the "update bdt2" step, so that the
exception clause is just COMMIT, then I get something different:

ERROR: portal snapshots (1) did not account for all active snapshots (0)
CONTEXT: PL/pgSQL function inline_code_block line 8 at COMMIT

I think perhaps plpgsql's exception handling needs a bit of adjustment,
but not sure what yet.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2021-09-27 19:58:28 Re: Fixing WAL instability in various TAP tests
Previous Message Tom Lane 2021-09-27 19:40:39 Re: statement_timeout vs DECLARE CURSOR