analyzing-schema-change-storage-risk

Installation
SKILL.md

Analyzing Schema Change Storage Risk

Estimates the storage headroom needed to safely run online schema changes. Mirrors the official guidance: some operations may temporarily require up to 3× the size of the affected table or index while the schema change is in flight.

For ongoing range-distribution monitoring, see analyzing-range-distribution.

When to Use This Skill

Run a quick estimate before issuing any of these operations on a table whose indexes are large (multiple GB per index, or many ranges per index):

  • CREATE INDEX
  • ADD COLUMN with INDEX or UNIQUE
  • ALTER PRIMARY KEY
  • CREATE MATERIALIZED VIEW
Related skills

More from cockroachlabs/cockroachdb-skills

Installs
29
GitHub Stars
9
First Seen
Mar 23, 2026