-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick Enhancement: Add gpshrink to support elastic scaling. Wit…
…h some editions by me. (#32) In order to support gpshrink, similar to gpexpand, we first support "alter table <tablename> shrink table to <segnum>" to redistribute data on a specific number of segments. For gpshrink implementation, it is mainly divided into two stages similar to gpexpand: 1. Collect the tables that need to be shrink and write them into gpshrink.status_detail. 2. Perform data redistribution on the tables that need to be shrink, and delete specific segments in gp_segment_configuration.
- Loading branch information
Showing
19 changed files
with
3,728 additions
and
30 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
Oops, something went wrong.