Re: [BUG] failed assertion in EnsurePortalSnapshotExists()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Drouvot, Bertrand" <bdrouvot@amazon.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-09-27T19:44:19Z
Lists: pgsql-hackers
"Drouvot, Bertrand" <bdrouvot@amazon.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
Commits
-
Fix Portal snapshot tracking to handle subtransactions properly.
- e6adaa1795d5 14.1 landed
- cded2c46099e 12.9 landed
- 7b5d4c29ed02 15.0 landed
- 5abbda98594d 11.14 landed
- 04ef2021e3ca 13.5 landed