-
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.
58519: sql: code generation for missing pg catalog tables r=RichardJCai a=mnovelodou Previously, programmer had to add missing table manually, This was inadequate because postgress added a lot of tables and manual process can lead to coding mistakes or gaps To address this, diff tool now have the hability to generate the missing code Release note: None Fixes #58001 60695: sql: add catalog.Mutation interface for table mutations r=postamar a=postamar Previously, catalog.TableDescriptor had a method, GetMutations, which returned a slice of descpb.DescriptorMutation structs, which in turn contain descpb.IndexDescriptor and descpb.ColumnDescriptor types. This is an obstacle to our ongoing effort to virtualize column and index descriptors. This commit therefore wraps descpb.DescriptorMutation in an interface type, catalog.Mutation, and also wraps the remaining mutation descriptor field types: - ConstraintToUpdate, - PrimaryKeySwap, - ComputedColumnSwap, - MaterializedViewRefresh. Release justification: This commit is safe for this release because it is a low-risk refactor. Release note: None Co-authored-by: MiguelNovelo <[email protected]> Co-authored-by: Marius Posta <[email protected]>
- Loading branch information
Showing
30 changed files
with
1,428 additions
and
645 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
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
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
Oops, something went wrong.