Help Center/
GaussDB/
Feature Guide(Distributed_V2.0-3.x)/
Partitioned Table/
Partitioned Table O&M Management/
Invalidating/Rebuilding Indexes of a Partition/
Invalidating/Rebuilding Indexes
Updated on 2025-08-22 GMT+08:00
Invalidating/Rebuilding Indexes
You can run ALTER INDEX to invalidate or rebuild indexes.
For example, if the range_sales_idx index exists in the range_sales partitioned table, run the following command to invalidate the index:
ALTER INDEX range_sales_idx UNUSABLE;
Run the following command to rebuild the range_sales_idx index:
ALTER INDEX range_sales_idx REBUILD;
Parent topic: Invalidating/Rebuilding Indexes of a Partition
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.