cockroachdb / cockroachdb/cockroach

sql/schemachanger: support ALTER PRIMARY KEY when index references exist within views / functions

Open
#124,131 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Previously, the declarative schema changer would hang with validation errors if we had references inside views / functions using the index selection syntax (i.e. @. This was because the declarative schema changer did not have any mechanism in place to fix these references. As a short term fix in #123017 we have blocked such schema changes. But longer term we can support them by "fixing" such references.

This issue also impacts the legacy schema changer.

Jira issue: CRDB-38713

Epic CRDB-60817

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.