sql: remove experimental gate from super regions#165227
Merged
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom Mar 11, 2026
Merged
Conversation
Super regions have been gated behind an experimental feature flag since their introduction in 22.1. Remove the gate so super regions work without requiring `SET enable_super_regions = 'on'`. - Remove `isSuperRegionEnabled()` and all call sites in ALTER DATABASE and CREATE DATABASE paths. - Retire the `sql.defaults.super_regions.enabled` cluster setting. - Deprecate the `enable_super_regions` session variable using `makeBackwardsCompatBoolVar` (hidden, always returns "on"). - Remove the unused `SetEnableSuperRegions` session mutator. - Clean up test files and workload code that set the gate. - Regenerate settings docs. Epic: CRDB-58694 Closes: cockroachdb#162481 Release note (sql change): The `enable_super_regions` session variable and `sql.defaults.super_regions.enabled` cluster setting are no longer required to use super regions. Super region DDL operations (ADD, DROP, ALTER SUPER REGION) now work without enabling any experimental flag. The session variable and cluster setting are deprecated; existing scripts that set them will continue to work without error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
😎 Merged successfully - details. |
Member
rafiss
approved these changes
Mar 11, 2026
Contributor
Author
|
TFTR! /trunk merge |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Super regions have been gated behind an experimental feature flag since their introduction in 22.1. Remove the gate so super regions work without requiring
SET enable_super_regions = 'on'.isSuperRegionEnabled()and all call sites in ALTER DATABASE and CREATE DATABASE paths.sql.defaults.super_regions.enabledcluster setting.enable_super_regionssession variable usingmakeBackwardsCompatBoolVar(hidden, always returns "on").SetEnableSuperRegionssession mutator.Epic: CRDB-58694
Closes: #162481
Release note (sql change): The
enable_super_regionssession variable andsql.defaults.super_regions.enabledcluster setting are no longer required to use super regions. Super region DDL operations (ADD, DROP, ALTER SUPER REGION) now work without enabling any experimental flag. The session variable and cluster setting are deprecated; existing scripts that set them will continue to work without error.