'immediate'
only when you want to recover to the earliest consistent state. For precise recovery, use more specific target parameters like recovery_target_time or recovery_target_lsn instead.'pause'
is safest as it allows verification before proceeding. Use 'promote'
for automated failover scenarios. Use 'shutdown'
when you need to perform additional manual steps after recovery. Always test the chosen action in your specific environment.true
(include). Set to false
if you need to exclude a specific transaction that caused issues. For most point-in-time recovery scenarios, keeping it true provides the expected behavior of including all transactions up to the specified point.'0/15000000'
. Ensure you have accurate LSN information from backups or monitoring systems. This is the most precise but also most technical recovery method, requiring careful LSN management.'before_upgrade'
. Create restore points at strategic times using SELECT pg_create_restore_point('descriptive_name');
. This method combines precision with human readability.'2024-01-15 14:30:00 EST'
. Always include timezone information to avoid ambiguity. This is the recommended approach for most point-in-time recovery scenarios as it's both precise and understandable.'latest'
is usually correct. Specify a specific timeline number only when you need to recover to a branch other than the latest. Use 'current'
to continue in the current timeline. Timeline management is important for sophisticated backup strategies.'1234567'
. Requires knowing the exact transaction ID that marks your recovery point. This method is less common than time-based recovery but can be useful in specific scenarios where transaction tracking is available.Start your journey toward a healthier PostgreSQL with pghealth.
You can explore all features immediately with a free trial β no installation required.
π Start Free Trial