How to list indexes created for table in postgres

后端 未结 3 959
日久生厌
日久生厌 2021-02-01 11:37

Could you tell me how to check what indexes are created for some table in postgresql ?

3条回答
  •  渐次进展
    2021-02-01 12:13

    The view pg_indexes provides access to useful information about each index in the database, eg.

    select *
    from pg_indexes
    where tablename not like 'pg%';
    

提交回复
热议问题