File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1264,32 +1264,43 @@ def test_zags_block_corrupt(self):
12641264
12651265 conn .execute (
12661266 "create table tbl(i int)" )
1267+ conn .commit ()
12671268 conn .execute (
12681269 "create index idx ON tbl (i)" )
1270+ conn .commit ()
12691271 conn .execute (
12701272 "insert into tbl select i from generate_series(0,400) as i" )
1273+ conn .commit ()
12711274 conn .execute (
12721275 "select pg_relation_size('idx')" )
1276+ conn .commit ()
12731277 conn .execute (
12741278 "delete from tbl where i < 100" )
1279+ conn .commit ()
12751280 conn .execute (
12761281 "explain analyze select i from tbl order by i" )
1282+ conn .commit ()
12771283 conn .execute (
12781284 "select i from tbl order by i" )
1285+ conn .commit ()
12791286 conn .execute (
12801287 "create extension pageinspect" )
1288+ conn .commit ()
12811289 print (conn .execute (
12821290 "select * from bt_page_stats('idx',1)" ))
1291+ conn .commit ()
12831292 conn .execute (
12841293 "insert into tbl select i from generate_series(0,100) as i" )
1294+ conn .commit ()
12851295 conn .execute (
12861296 "insert into tbl select i from generate_series(0,100) as i" )
1297+ conn .commit ()
12871298 conn .execute (
12881299 "insert into tbl select i from generate_series(0,100) as i" )
1300+ conn .commit ()
12891301 conn .execute (
12901302 "insert into tbl select i from generate_series(0,100) as i" )
12911303
1292- conn .commit ()
12931304
12941305 node_restored = self .make_simple_node (
12951306 base_dir = "{0}/{1}/node_restored" .format (module_name , fname ),
You can’t perform that action at this time.
0 commit comments