@@ -1344,10 +1344,6 @@ def test_zags_block_corrupt_1(self):
13441344 'postgres' ,
13451345 'insert into tbl select i from generate_series(0,100000) as i' )
13461346
1347- print (node .safe_psql (
1348- 'postgres' ,
1349- "select pg_relation_size('idx')" ))
1350-
13511347 node .safe_psql (
13521348 'postgres' ,
13531349 'delete from tbl where i%2 = 0' )
@@ -1364,10 +1360,6 @@ def test_zags_block_corrupt_1(self):
13641360 'postgres' ,
13651361 'create extension pageinspect' )
13661362
1367- print (node .safe_psql (
1368- 'postgres' ,
1369- "select * from bt_page_stats('idx',1)" ))
1370-
13711363 node .safe_psql (
13721364 'postgres' ,
13731365 'checkpoint' )
@@ -1413,8 +1405,8 @@ def test_zags_block_corrupt_1(self):
14131405 if 'selected new timeline ID' in f .read ():
14141406 break
14151407
1416- with open (node_restored .pg_log_file , 'r' ) as f :
1417- print (f .read ())
1408+ # with open(node_restored.pg_log_file, 'r') as f:
1409+ # print(f.read())
14181410
14191411 pgdata_restored = self .pgdata_content (node_restored .data_dir )
14201412
@@ -1905,8 +1897,8 @@ def test_restore_target_latest_archive(self):
19051897 self .restore_node (
19061898 backup_dir , 'node' , node )
19071899
1908- with open (recovery_conf , 'r' ) as f :
1909- print (f .read ())
1900+ # with open(recovery_conf, 'r') as f:
1901+ # print(f.read())
19101902
19111903 hash_1 = hashlib .md5 (
19121904 open (recovery_conf , 'rb' ).read ()).hexdigest ()
@@ -1916,8 +1908,8 @@ def test_restore_target_latest_archive(self):
19161908 self .restore_node (
19171909 backup_dir , 'node' , node , options = ['--recovery-target=latest' ])
19181910
1919- with open (recovery_conf , 'r' ) as f :
1920- print (f .read ())
1911+ # with open(recovery_conf, 'r') as f:
1912+ # print(f.read())
19211913
19221914 hash_2 = hashlib .md5 (
19231915 open (recovery_conf , 'rb' ).read ()).hexdigest ()
@@ -1999,8 +1991,6 @@ def test_restore_target_new_options(self):
19991991 with open (recovery_conf , 'r' ) as f :
20001992 recovery_conf_content = f .read ()
20011993
2002- print (recovery_conf_content )
2003-
20041994 self .assertIn (
20051995 "recovery_target_time = '{0}'" .format (target_time ),
20061996 recovery_conf_content )
@@ -2028,8 +2018,6 @@ def test_restore_target_new_options(self):
20282018 with open (recovery_conf , 'r' ) as f :
20292019 recovery_conf_content = f .read ()
20302020
2031- print (recovery_conf_content )
2032-
20332021 self .assertIn (
20342022 "recovery_target_xid = '{0}'" .format (target_xid ),
20352023 recovery_conf_content )
@@ -2057,8 +2045,6 @@ def test_restore_target_new_options(self):
20572045 with open (recovery_conf , 'r' ) as f :
20582046 recovery_conf_content = f .read ()
20592047
2060- print (recovery_conf_content )
2061-
20622048 self .assertIn (
20632049 "recovery_target_lsn = '{0}'" .format (target_lsn ),
20642050 recovery_conf_content )
@@ -2086,8 +2072,6 @@ def test_restore_target_new_options(self):
20862072 with open (recovery_conf , 'r' ) as f :
20872073 recovery_conf_content = f .read ()
20882074
2089- print (recovery_conf_content )
2090-
20912075 self .assertIn (
20922076 "recovery_target_name = '{0}'" .format (target_name ),
20932077 recovery_conf_content )
0 commit comments