pg_stat_user_indexes
Same as pg_stat_all_indexes, except that only indexes on user tables are shown.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- columns not enumerated
- false
- derived from
- pg_stat_all_indexes
- kind
- statistics
- lang
- en
- measured attributes
- false
- metadata release
- Unknown
- runtime columns
- relid, indexrelid, schemaname, relname, indexrelname, idx_scan, last_idx_scan, idx_tup_read, idx_tup_fetch
- runtime verified
- false
- source
- english-manual
Definition PG 18
Same as pg_stat_all_indexes, except that only indexes on user tables are shown.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| relid | oid | Nullable | OID of the table for this index |
| indexrelid | oid | Nullable | OID of this index |
| schemaname | name | Nullable | Name of the schema this index is in |
| relname | name | Nullable | Name of the table for this index |
| indexrelname | name | Nullable | Name of this index |
| idx_scan | bigint | Nullable | Number of index scans initiated on this index |
| last_idx_scan | timestamp with time zone | Nullable | The time of the last scan on this index, based on the most recent transaction stop time |
| idx_tup_read | bigint | Nullable | Number of index entries returned by scans on this index |
| idx_tup_fetch | bigint | Nullable | Number of live table rows fetched by simple index scans using this index |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:5d81b46aa34ea5215956fcf3a74aad277b3b3d245be8aece46828f732c2e4037
Text language: en · catalog-bilingual-repair:5d81b46aa34ea5215956fcf3a74aad277b3b3d245be8aece46828f732c2e4037