@@ -220,7 +220,7 @@ def test_page_archive(self):
220220 node .safe_psql (
221221 "postgres" ,
222222 "create table t_heap as select i as id, md5(i::text) as text, "
223- "md5(i::text)::tsvector as tsvector from generate_series(0,1 ) i" )
223+ "md5(i::text)::tsvector as tsvector from generate_series(0,100 ) i" )
224224 full_result = node .execute ("postgres" , "SELECT * FROM t_heap" )
225225 full_backup_id = self .backup_node (
226226 backup_dir , 'node' , node , backup_type = 'full' )
@@ -230,10 +230,14 @@ def test_page_archive(self):
230230 "postgres" ,
231231 "insert into t_heap select i as id, "
232232 "md5(i::text) as text, md5(i::text)::tsvector as tsvector "
233- "from generate_series(0,2 ) i" )
233+ "from generate_series(100, 200 ) i" )
234234 page_result = node .execute ("postgres" , "SELECT * FROM t_heap" )
235235 page_backup_id = self .backup_node (
236- backup_dir , 'node' , node , backup_type = 'page' )
236+ backup_dir , 'node' , node ,
237+ backup_type = 'page' , options = ["-j" , "4" ])
238+
239+ if self .paranoia :
240+ pgdata = self .pgdata_content (node .data_dir )
237241
238242 # Drop Node
239243 node .cleanup ()
@@ -250,6 +254,12 @@ def test_page_archive(self):
250254 "--recovery-target-action=promote" ]),
251255 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
252256 repr (self .output ), self .cmd ))
257+
258+ # GET RESTORED PGDATA AND COMPARE
259+ if self .paranoia :
260+ pgdata_restored = self .pgdata_content (node .data_dir )
261+ self .compare_pgdata (pgdata , pgdata_restored )
262+
253263 node .slow_start ()
254264
255265 full_result_new = node .execute ("postgres" , "SELECT * FROM t_heap" )
0 commit comments