Re: BUG #17035: assert after commit
RekGRpth <rekgrpth@gmail.com>
From: RekGRpth <rekgrpth@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-05-27T03:51:09Z
Lists: pgsql-bugs
Ok, thanks. I add PushActiveSnapshot(GetTransactionSnapshot()); after SPI_start_transaction and PopActiveSnapshot(); before SPI_commit and it works! with bst regrds, Rek>pth чт, 27 мая 2021 г. в 08:22, Tom Lane <tgl@sss.pgh.pa.us>: > > RekGRpth <rekgrpth@gmail.com> writes: > > Ok, I see. But I use SPI_execute_plan in background worker and no > > ActivePortal there > > Well, you need to provide a snapshot. replication/worker.c > might serve as an example. > > regards, tom lane
Commits
-
Use elog, not Assert, to report failure to provide an outer snapshot.
- f260436459a6 12.8 landed
- ef12f32c0870 15.0 landed
- ec410c985e6d 14.0 landed
- cefb1230e7aa 11.13 landed
- 93f99693f9c2 13.4 landed
-
Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.
- d18ee6f92d9a 13.4 cited