DROP TABLE IF EXISTS uncommit;
CREATE TABLE uncommit (v int);
CHECKPOINT;

BEGIN;
INSERT INTO uncommit VALUES(1);
SAVEPOINT S1;
INSERT INTO uncommit VALUES(2);
SAVEPOINT S2;
INSERT INTO uncommit VALUES(3);
SAVEPOINT S3;
INSERT INTO uncommit VALUES(4);
SAVEPOINT S4;
INSERT INTO uncommit VALUES(5);
SAVEPOINT S5;
INSERT INTO uncommit VALUES(6);
SAVEPOINT S6;
INSERT INTO uncommit VALUES(7);
SAVEPOINT S7;
INSERT INTO uncommit VALUES(8);
SAVEPOINT S8;
INSERT INTO uncommit VALUES(9);
SAVEPOINT S9;
INSERT INTO uncommit VALUES(10);
SAVEPOINT S10;
INSERT INTO uncommit VALUES(11);
SAVEPOINT S11;
INSERT INTO uncommit VALUES(12);
SAVEPOINT S12;
INSERT INTO uncommit VALUES(13);
SAVEPOINT S13;
INSERT INTO uncommit VALUES(14);
SAVEPOINT S14;
INSERT INTO uncommit VALUES(15);
SAVEPOINT S15;
INSERT INTO uncommit VALUES(16);
SAVEPOINT S16;
INSERT INTO uncommit VALUES(17);
SAVEPOINT S17;
INSERT INTO uncommit VALUES(18);
SAVEPOINT S18;
INSERT INTO uncommit VALUES(19);
SAVEPOINT S19;
INSERT INTO uncommit VALUES(20);
SAVEPOINT S20;
INSERT INTO uncommit VALUES(21);
SAVEPOINT S21;
INSERT INTO uncommit VALUES(22);
SAVEPOINT S22;
INSERT INTO uncommit VALUES(23);
SAVEPOINT S23;
INSERT INTO uncommit VALUES(24);
SAVEPOINT S24;
INSERT INTO uncommit VALUES(25);
SAVEPOINT S25;
INSERT INTO uncommit VALUES(26);
SAVEPOINT S26;
INSERT INTO uncommit VALUES(27);
SAVEPOINT S27;
INSERT INTO uncommit VALUES(28);
SAVEPOINT S28;
INSERT INTO uncommit VALUES(29);
SAVEPOINT S29;
INSERT INTO uncommit VALUES(30);
SAVEPOINT S30;
INSERT INTO uncommit VALUES(31);
SAVEPOINT S31;
INSERT INTO uncommit VALUES(32);
SAVEPOINT S32;
INSERT INTO uncommit VALUES(33);
SAVEPOINT S33;
INSERT INTO uncommit VALUES(34);
SAVEPOINT S34;
INSERT INTO uncommit VALUES(35);
SAVEPOINT S35;
INSERT INTO uncommit VALUES(36);
SAVEPOINT S36;
INSERT INTO uncommit VALUES(37);
SAVEPOINT S37;
INSERT INTO uncommit VALUES(38);
SAVEPOINT S38;
INSERT INTO uncommit VALUES(39);
SAVEPOINT S39;
INSERT INTO uncommit VALUES(40);
SAVEPOINT S40;
INSERT INTO uncommit VALUES(41);
SAVEPOINT S41;
INSERT INTO uncommit VALUES(42);
SAVEPOINT S42;
INSERT INTO uncommit VALUES(43);
SAVEPOINT S43;
INSERT INTO uncommit VALUES(44);
SAVEPOINT S44;
INSERT INTO uncommit VALUES(45);
SAVEPOINT S45;
INSERT INTO uncommit VALUES(46);
SAVEPOINT S46;
INSERT INTO uncommit VALUES(47);
SAVEPOINT S47;
INSERT INTO uncommit VALUES(48);
SAVEPOINT S48;
INSERT INTO uncommit VALUES(49);
SAVEPOINT S49;
INSERT INTO uncommit VALUES(50);
SAVEPOINT S50;
INSERT INTO uncommit VALUES(51);
SAVEPOINT S51;
INSERT INTO uncommit VALUES(52);
SAVEPOINT S52;
INSERT INTO uncommit VALUES(53);
SAVEPOINT S53;
INSERT INTO uncommit VALUES(54);
SAVEPOINT S54;
INSERT INTO uncommit VALUES(55);
SAVEPOINT S55;
INSERT INTO uncommit VALUES(56);
SAVEPOINT S56;
INSERT INTO uncommit VALUES(57);
SAVEPOINT S57;
INSERT INTO uncommit VALUES(58);
SAVEPOINT S58;
INSERT INTO uncommit VALUES(59);
SAVEPOINT S59;
INSERT INTO uncommit VALUES(60);
SAVEPOINT S60;
INSERT INTO uncommit VALUES(61);
SAVEPOINT S61;
INSERT INTO uncommit VALUES(62);
SAVEPOINT S62;
INSERT INTO uncommit VALUES(63);
SAVEPOINT S63;
INSERT INTO uncommit VALUES(64);
SAVEPOINT S64;
INSERT INTO uncommit VALUES(65);
SAVEPOINT S65;
INSERT INTO uncommit VALUES(66);
SAVEPOINT S66;
INSERT INTO uncommit VALUES(67);
SAVEPOINT S67;
INSERT INTO uncommit VALUES(68);
SAVEPOINT S68;
INSERT INTO uncommit VALUES(69);
SAVEPOINT S69;
INSERT INTO uncommit VALUES(70);
SAVEPOINT S70;
INSERT INTO uncommit VALUES(71);
SAVEPOINT S71;
INSERT INTO uncommit VALUES(72);
SAVEPOINT S72;
INSERT INTO uncommit VALUES(73);
SAVEPOINT S73;
INSERT INTO uncommit VALUES(74);
SAVEPOINT S74;
INSERT INTO uncommit VALUES(75);
SAVEPOINT S75;
INSERT INTO uncommit VALUES(76);
SAVEPOINT S76;
INSERT INTO uncommit VALUES(77);
SAVEPOINT S77;
INSERT INTO uncommit VALUES(78);
SAVEPOINT S78;
INSERT INTO uncommit VALUES(79);
SAVEPOINT S79;
INSERT INTO uncommit VALUES(80);
SAVEPOINT S80;
INSERT INTO uncommit VALUES(81);
SAVEPOINT S81;
INSERT INTO uncommit VALUES(82);
SAVEPOINT S82;
INSERT INTO uncommit VALUES(83);
SAVEPOINT S83;
INSERT INTO uncommit VALUES(84);
SAVEPOINT S84;
INSERT INTO uncommit VALUES(85);
SAVEPOINT S85;
INSERT INTO uncommit VALUES(86);
SAVEPOINT S86;
INSERT INTO uncommit VALUES(87);
SAVEPOINT S87;
INSERT INTO uncommit VALUES(88);
SAVEPOINT S88;
INSERT INTO uncommit VALUES(89);
SAVEPOINT S89;
INSERT INTO uncommit VALUES(90);
SAVEPOINT S90;
select pg_sleep(1800);

COMMIT;
