@@ -220,7 +220,7 @@ def test_page_archive(self):
220
220
node .safe_psql (
221
221
"postgres" ,
222
222
"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" )
224
224
full_result = node .execute ("postgres" , "SELECT * FROM t_heap" )
225
225
full_backup_id = self .backup_node (
226
226
backup_dir , 'node' , node , backup_type = 'full' )
@@ -230,10 +230,14 @@ def test_page_archive(self):
230
230
"postgres" ,
231
231
"insert into t_heap select i as id, "
232
232
"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" )
234
234
page_result = node .execute ("postgres" , "SELECT * FROM t_heap" )
235
235
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 )
237
241
238
242
# Drop Node
239
243
node .cleanup ()
@@ -250,6 +254,12 @@ def test_page_archive(self):
250
254
"--recovery-target-action=promote" ]),
251
255
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
252
256
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
+
253
263
node .slow_start ()
254
264
255
265
full_result_new = node .execute ("postgres" , "SELECT * FROM t_heap" )
0 commit comments