File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ def test_tli_ptrack_catchup(self):
357
357
self .set_replica (dst_pg , src_pg ) # fake replication
358
358
src_pg .slow_start (replica = True )
359
359
src_pg .promote ()
360
+
361
+ src_pg .safe_psql ("postgres" , "CHECKPOINT" ) # force postgres to update tli in 'SELECT timeline_id FROM pg_catalog.pg_control_checkpoint()'
362
+ src_tli = src_pg .safe_psql ("postgres" , "SELECT timeline_id FROM pg_catalog.pg_control_checkpoint()" ).decode ('utf-8' ).rstrip ()
363
+ self .assertEqual (src_tli , "2" , "Postgres didn't update TLI after promote" )
364
+
360
365
src_pg .safe_psql ("postgres" , "CREATE TABLE ultimate_question AS SELECT 42 AS answer" )
361
366
src_query_result = src_pg .safe_psql ("postgres" , "SELECT * FROM ultimate_question" )
362
367
You can’t perform that action at this time.
0 commit comments