> It turns out that your v8 patch still has the issue complained about in . > The issue is that after COMMIT AND CHAIN, the internal savepoint is gone, but > the patched psql still thinks it should be there and tries to release it, > which leads to errors.
Indeed. Thanks for the catch.
Attached v9 integrates your tests and makes them work.