pg13不再使用recovery.conf,直接合并到Postgresql.conf里:
wal_level = replica
archive_mode = on
archive_command = 'echo "start archive."'
restore_command = 'echo "begin PITR"'
recovery_target_time = '2021-10-18 10:02:15' //恢复到指定时间,也可指定其他方式,
//包括recovery_targe,recovery_target_timeline,recovery_target_xid,recovery_target_lsn
recovery_target_inclusive = 'true' //包含时间点
recovery_target_action = 'pause' //promote/shutdown
recovery_end_command = 'echo "PITR finished."'