Help Center/ GaussDB/ Developer Guide(Distributed_V2.0-10.x)/ FAQ - Non-Multi-Primary/ Development Design/ How Do I Query Partition Information and Index Information of a Partitioned Table?
Updated on 2026-10-21 GMT+08:00
How Do I Query Partition Information and Index Information of a Partitioned Table?
Answer: You can use either of the following methods:
- You can use the pg_get_tabledef() function to view the definition of a table. The returned information includes table creation SQL statements, comments, indexes, and constraints.
- You can query the pg_partition view for partition information and the pg_indexes view for index information.
Parent topic: Development Design
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot