cockroachdb / cockroachdb/cockroach
backupccl: allow by-name references in BACKUP/RESTORE TENANT
Open
A-disaster-recovery
C-enhancement
P-2
T-disaster-recovery
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Requested by @dt .
In #95272 we have made progress elevating _tenant names_ as the main way to refer to crdb tenants.
However, the first argument in the syntax for `BACKUP/RESTORE TENANT` is still a simple number.
This should be changed to refer to tenant names instead.
The complexity is in the RESTORE case, where the name -> id mapping should be done using the backup metadata instead of the `system.tenants` table on the target cluster.
cc @stevendanna for triage.
Jira issue: CRDB-23443
Epic CRDB-27614
Contributor guide
Assessment
This issue has not been assessed yet.