-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45368: backupccl: allow picking a backup with AS OF SYSTEM time r=dt a=dt This change extends the support for picking, via AS OF SYSTEM TIME, any backup in the chain provided to RESTORE as the target to RESTORE to. For revision-history backups, this already works: one can specify any point in time covered anywhere in the chain, as long as the backup covering that time has revision history. For non-revision-history backups however, the only way to restore to a particular backup, say 'c' from the chain ('a', 'b', 'c', 'd'), was to explicitly say `RESTORE FROM a, b, c` and elide the rest of the chain from the RESTORE command. In practice, when dealing with large numbers of incremental backups, is is often easier to simply maintain the full list of backups and paste it in its entirety than try to manage it by hand and specify a prefix. Furthermore, with "appeandable" backups that automatically create and discover the list of incremental layers implicitly rather than specifying it by hand, there's not an option of specifying a prefix. This change thus allows specifying the timestamp of a backup in the chain provided to RESTORE by using AS OF SYSTEM TIME even if that backup was *not* created with revision history to effectively truncate the chain to that point, e.g. making it possible to say `RESTORE FROM a, b, c, d AS OF SYSTEM TIME <ts of c>`. Release note (enterprise change): RESTORE allows using AS OF SYSTEM TIME to pick a target backup from a larger list of incremental backups. Co-authored-by: David Taylor <[email protected]>
- Loading branch information
Showing
3 changed files
with
88 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters