Finding the right timestamp
So far, I have silently assumed that you know the timestamp you want to recover to or that you simply want to replay all the transaction log possible to reduce data loss. However, what if you don't want to replay everything? What if you don't know to which point in time to recover to? In everyday life, this is actually a very common scenario. One of your developers has lost some data in the morning and you are supposed to make things fine again. The trouble is this: when is in the morning? Once recovery has ended, it cannot be restarted easily. Once recovery is completed, the system will be promoted, and once it has been promoted you cannot continue to replay WAL.
However, what you can do is pause recovery without ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access