Skip to content

Ability to prevent dropping an index when a column referencing the index is dropped #73445

@lancel66

Description

@lancel66

Is your feature request related to a problem? Please describe.

Currently, dropping a column that is referenced by an index (either directly or via STORING) will silently drop the index as well. Although this is described in the CockroachDB documentation, it is considered dangerous by a customer who runs a large on-prem microservice environment where they operate DBaaS for internal customers.

Describe the solution you'd like

Provide the ability not to drop the index on an opt-in basis (either via a cluster/session setting or CASCADE)

Describe alternatives you've considered

N/A

Jira issue: CRDB-11592

Epic CRDB-60817

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions