pg_index v7.4
This section is adapted from the WarehousePG v7.x documentation
The pg_index system catalog table contains part of the information about indexes. The rest is mostly in pg_class.
| column | type | references | description |
|---|---|---|---|
indexrelid | oid | pg_class.oid | The OID of the pg_class entry for this index |
indrelid | oid | pg_class.oid | The OID of the pg_class entry for the table this index is for |
indnatts | smallint | The number of columns in the index (duplicates pg_class.relnatts) | |
indnkeyatts | smallint | The number of key columns in the index | |
indisunique | boolean | If true, this is a unique index | |
indisprimary | boolean | If true, this index represents the primary key of the table. (indisunique should always be true when this is true.) | |
indisexclusion | boolean | If true, this index supports an exclusion constraint | |
| indimmediate | boolean | If true, the uniqueness check is enforced immediately on insertion (irrelevant if indisunique is not true) | |
indisclustered | boolean |