File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ static char *pgdata_exclude_files[] =
8080 "postmaster.pid" ,
8181 "postmaster.opts" ,
8282 "probackup_recovery.conf" ,
83+ "recovery.signal" ,
84+ "standby.signal" ,
8385 NULL
8486};
8587
Original file line number Diff line number Diff line change @@ -967,6 +967,17 @@ create_recovery_conf(time_t backup_id,
967967
968968 if (rt -> target_tli )
969969 fio_fprintf (fp , "recovery_target_timeline = '%u'\n" , rt -> target_tli );
970+ else
971+ {
972+ /*
973+ * In PG12 default recovery target timeline was changed to 'latest', which
974+ * is extremely risky. Explicitly preserve old behavior of recovering to current
975+ * timneline for PG12.
976+ */
977+ #if PG_VERSION_NUM >= 120000
978+ fio_fprintf (fp , "recovery_target_timeline = '%u'\n" , backup -> tli );
979+ #endif
980+ }
970981
971982 if (rt -> target_action )
972983 fio_fprintf (fp , "recovery_target_action = '%s'\n" , rt -> target_action );
You can’t perform that action at this time.
0 commit comments