forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131590: sql: ALTER COLUMN TYPE does not check partial index definitions r=Dedej-Bergin a=Dedej-Bergin Previously we would allow ALTER COLUMN TYPE to succeed on a column even when we have a partial index on it. This would cause issues down the line for example at insert and is inconsistent with postgres. This fix now checks for partial index and errors out like postgres when your run the ALTER COLUMN TYPE command on a column with a partial index. Fixes: cockroachdb#72456 Epic: CRDB-25314 Release note (bug fix): ALTER COLUMN TYPE now errors out when we have a partial index dependent on the column being altered. Co-authored-by: Bergin Dedej <[email protected]>
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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