PG_INDEX
PG_INDEX records part of index information. The rest is mostly recorded in PG_CLASS.
Name |
Type |
Description |
---|---|---|
indexrelid |
oid |
OID of the 12.2.51 PG_CLASS entry for the index |
indrelid |
oid |
OID of the 12.2.51 PG_CLASS entry for the table that uses the index |
indnatts |
smallint |
Number of columns in the index |
indisunique |
Boolean |
Specifies whether the index is unique.
|
indisprimary |
Boolean |
Specifies whether the index is the primary key of the table.
|
indisexclusion |
Boolean |
Specifies whether the index supports exclusive constraints.
|
indimmediate |
Boolean |
Specifies whether to check the uniqueness of data to be inserted.
|
indisclustered |
Boolean |
Specifies whether the table is clustered on the index.
|
indisusable |
Boolean |
Specifies whether the index is available for insert and select operations.
|
indisvalid |
Boolean |
|
indcheckxmin |
Boolean |
|
indisready |
Boolean |
|
indkey |
int2vector |
This is an array of indnatts values indicating that this index creates table columns. For example, a value of 1 3 indicates that the first and the third columns make up the index key. The value 0 in this array indicates that the corresponding index attribute is an expression over the table columns, rather than a simple column reference. |
indcollation |
oidvector |
OID of the collation corresponding to each index column. For details, see PG_COLLATION. |
indclass |
oidvector |
For each column in the index key, this contains the OID of the operator class to use. See PG_OPCLASS for details. |
indoption |
int2vector |
Array of values that store per-column flag bits. The meaning of the bits is defined by the index's access method. |
indexprs |
pg_node_tree |
Expression trees (in nodeToString() representation) for index attributes that are not simple column references. It is a list with one element for each zero entry in indkey. The value is null if all index attributes are simple references. |
indpred |
pg_node_tree |
Expression tree (in nodeToString() representation) for partial index predicate. If the index is not a partial index, this column is an empty string. |
indisreplident |
Boolean |
Specifies whether the column of this index is a decoded column of logical decoding.
|
indnkeyatts |
smallint |
Total number of columns in the index. The columns that exceed the value of indnatts are not involved in the index query. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot