A method, apparatus, and electronic device for creating and reconstructing a duplicate name index based on openGauss.
By rewriting index names in openGauss and using invisible delimiters to append table OIDs, the index naming conflict problem when migrating MySQL databases to openGauss was resolved, enabling the management of indexes with the same name in the same namespace and improving migration efficiency and compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING VASTDATA TECH
- Filing Date
- 2025-08-12
- Publication Date
- 2026-06-30
AI Technical Summary
When migrating a MySQL database to openGauss, openGauss requires index names to be unique within the same database, while MySQL allows indexes to have the same name across tables. This can lead to index naming conflicts during the migration process, affecting the feasibility of the migration and data compatibility. Existing solutions are inefficient, error-prone, and have high maintenance costs.
By introducing an index name rewriting mechanism in openGauss, the table OID is appended to the index name using the ASCII code 0x1F as an invisible separator, forming the format "index name_0x1F table OID", which ensures the uniqueness of the index name, and the REINDEX command is used to achieve a smooth transition between the old and new index formats.
It improves database migration efficiency and compatibility, reduces manual intervention costs, ensures consistency and accuracy in large-scale database migration, and has good scalability and backward compatibility.
Smart Images

Figure CN120910050B_ABST