testdb=# \d city
Table "public.city"
Column | Type | Collation | Nullable | Default
--------+---------+-----------+----------+---------
no | integer || |
jpn | text || |
eng | text || |
testdb=# BEGIN;BEGIN
testdb=# INSERT INTO city VALUES(1, '青森', 'Aomori'), (2, '秋田', 'Akita');
INSERT 02
testdb=# DELETE FROM city WHERE no = 2;
DELETE 1
testdb=# COMMIT;
COMMIT
testdb=# INSERT INTO city VALUES(3, '札幌', 'Sapporo');
INSERT 01
testdb=# ROLLBACK;
WARNING: there is no transaction in progress
ROLLBACK
testdb=# INSERT INTO city VALUES(4, '盛岡', 'Morioka');
INSERT 01
testdb=# ABORT;
WARNING: there is no transaction in progress
ROLLBACK
testdb=# SELECTcount(*) FROM city;
count
-------
3
(1 row)