支持SAVEPOINT使用
DO $$ DECLARE
BEGIN
insert into tabletest values (1);
savepoint aa;
insert into tabletest values (2);
savepoint bb;
insert into tabletest values (3);
rollback to bb;
END $$;
atlasdb=# select * from tabletest;
id
----
1
2
(2 rows)