forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cockroachdb#55719 from pbardea/backport20.2-55685
release-20.2: backupccl: only restore system tables included in backup
- Loading branch information
Showing
16 changed files
with
130 additions
and
24 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
Binary file added
BIN
+3.33 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416589295618.sst
Binary file not shown.
Binary file added
BIN
+998 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416589328386.sst
Binary file not shown.
Binary file added
BIN
+1.03 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416589590532.sst
Binary file not shown.
Binary file added
BIN
+1.08 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416589754372.sst
Binary file not shown.
Binary file added
BIN
+952 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416590540803.sst
Binary file not shown.
Binary file added
BIN
+1.15 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416590573571.sst
Binary file not shown.
Binary file added
BIN
+938 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416590606339.sst
Binary file not shown.
Binary file added
BIN
+1.32 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416591523844.sst
Binary file not shown.
Binary file added
BIN
+1009 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416595816451.sst
Binary file not shown.
Binary file added
BIN
+934 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416596144131.sst
Binary file not shown.
Binary file added
BIN
+938 Bytes
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/599877416597553155.sst
Binary file not shown.
Binary file added
BIN
+5.54 KB
pkg/ccl/backupccl/testdata/restore_old_versions/cluster/v20.1.7/BACKUP
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
pkg/ccl/backupccl/testdata/restore_old_versions/create_cluster.sql
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE USER craig; | ||
CREATE DATABASE data; | ||
CREATE TABLE data.bank (a INT); | ||
INSERT INTO TABLE data.bank VALUES (1); | ||
|
||
COMMENT ON TABLE data.bank IS 'table comment string'; | ||
COMMENT ON DATABASE data IS 'database comment string'; | ||
|
||
INSERT INTO system.locations ("localityKey", "localityValue", latitude, longitude) VALUES ('city', 'nyc', 10, 10); | ||
|
||
ALTER TABLE data.bank CONFIGURE ZONE USING gc.ttlseconds = 3600; |