-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56381: tabledesc: add validation for partial index predicates, check constraint expressions, and computed column expressions r=ajwerner a=mgartner #### tabledesc: validate partial index predicate expressions This commit adds validation to ensure that partial index predicate expressions do not reference nonexistent columns. I tested this validation ad-hoc by commenting-out code that renames columns in partial index predicate expressions during an `ALTER TABLE ... RENAME COLUMN` statement, and verifying that the correct error was returned. Fixes #51083 Release note: None #### tabledesc: validate check constraint expressions This commit adds validation for check constraints defined on a table descriptor. The validation includes verifying that check constraints exist in the table and that check constraint expressions do not reference non-existent columns. Informs #50854 Release note: None #### tabledesc: move column validation into helper function Release note: None #### tabledesc: validate computed column expressions This commit adds validation to ensure that computed column expressions do not reference nonexistent columns. I tested this validation ad-hoc by commenting-out code that renames columns in computed column expressions during an `ALTER TABLE ... RENAME COLUMN` statement, and verifying that the correct error was returned. Informs #50854 Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
5 changed files
with
204 additions
and
45 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
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