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):
1264
1264
1265
1265
conn .execute (
1266
1266
"create table tbl(i int)" )
1267
+ conn .commit ()
1267
1268
conn .execute (
1268
1269
"create index idx ON tbl (i)" )
1270
+ conn .commit ()
1269
1271
conn .execute (
1270
1272
"insert into tbl select i from generate_series(0,400) as i" )
1273
+ conn .commit ()
1271
1274
conn .execute (
1272
1275
"select pg_relation_size('idx')" )
1276
+ conn .commit ()
1273
1277
conn .execute (
1274
1278
"delete from tbl where i < 100" )
1279
+ conn .commit ()
1275
1280
conn .execute (
1276
1281
"explain analyze select i from tbl order by i" )
1282
+ conn .commit ()
1277
1283
conn .execute (
1278
1284
"select i from tbl order by i" )
1285
+ conn .commit ()
1279
1286
conn .execute (
1280
1287
"create extension pageinspect" )
1288
+ conn .commit ()
1281
1289
print (conn .execute (
1282
1290
"select * from bt_page_stats('idx',1)" ))
1291
+ conn .commit ()
1283
1292
conn .execute (
1284
1293
"insert into tbl select i from generate_series(0,100) as i" )
1294
+ conn .commit ()
1285
1295
conn .execute (
1286
1296
"insert into tbl select i from generate_series(0,100) as i" )
1297
+ conn .commit ()
1287
1298
conn .execute (
1288
1299
"insert into tbl select i from generate_series(0,100) as i" )
1300
+ conn .commit ()
1289
1301
conn .execute (
1290
1302
"insert into tbl select i from generate_series(0,100) as i" )
1291
1303
1292
- conn .commit ()
1293
1304
1294
1305
node_restored = self .make_simple_node (
1295
1306
base_dir = "{0}/{1}/node_restored" .format (module_name , fname ),
You can’t perform that action at this time.
0 commit comments