-
Notifications
You must be signed in to change notification settings - Fork 4.1k
server: migrate existing databases to the rbr system table #94843
Copy link
Copy link
Closed
Labels
A-multiregionRelated to multi-regionRelated to multi-regionC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-shared-systemsShared Systems TeamShared Systems Team
Description
#85736 added alternative implementations of system.sqlliveness, system.sql_instances, and system.lease that have a primary key index compatible with regional by row (RBR) tables. Using the RBR compatible tables requires setting the COCKROACH_MR_SYSTEM_DATABASE environment variable.
We should implement a migration that converts the legacy system tables into this new format. That allows us to get rid of the environment variable and migrate tenants from single region hosts into multi-region hosts.
Epic: CRDB-18596
Jira issue: CRDB-23180
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-multiregionRelated to multi-regionRelated to multi-regionC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-shared-systemsShared Systems TeamShared Systems Team