Skip to content

set schema_locked automatically #129694

@rharding6373

Description

@rharding6373

schema_locked, which prevents users from altering tables in order to have a guaranteed period of no schema changes, is a huge win for changefeed scalability. In production we've seen dramatic latency improvements using schema_locked in systems where a changefeed node is watching 4k ranges. However, today users must set schema_locked manually, and then go through a multistep process of unlocking, altering, and re-locking a table whenever they want to alter the table.

If this could be automated so that tables are automatically locked, and only unlocked during a schema change, this would remove the burden on the user and improve the experience and performance for all changefeed users.

Jira issue: CRDB-41681

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions