"Drouvot, Bertrand" <bdrou...@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