-
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.
43828: backupccl: add full cluster restore r=pbardea a=pbardea This commit adds the ability to entirely restore a full cluster backup. This includes replacing the contents of some system tables to match the data in the backup. Full cluster restore can be used using the `RESTORE FROM ...` syntax and is expected to be run on a new cluster with no user data. Release note (enterprise change): Add full cluster restore feature which restores all the information contained in a full cluster backup. This includes all of the user data as well as relevant data from system tables. It is expected to be run on a new cluster with no user data. 44684: sql: move the existing savepoint logic to a separate file r=yuzefovich a=knz This commit re-organizes the code without any functional change. (Split from #43051 for ease of review.) Co-authored-by: Paul Bardea <[email protected]> Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,151 additions
and
471 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
restore_stmt ::= | ||
'RESTORE' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FROM' partitioned_backup_list opt_as_of_clause 'WITH' kv_option_list | ||
'RESTORE' 'FROM' partitioned_backup_list opt_as_of_clause 'WITH' kv_option_list | ||
| 'RESTORE' 'FROM' partitioned_backup_list opt_as_of_clause | ||
| 'RESTORE' 'FROM' partitioned_backup_list opt_as_of_clause | ||
| 'RESTORE' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FROM' partitioned_backup_list opt_as_of_clause 'WITH' kv_option_list | ||
| 'RESTORE' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FROM' partitioned_backup_list opt_as_of_clause | ||
| 'RESTORE' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'FROM' partitioned_backup_list opt_as_of_clause |
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
Oops, something went wrong.