psqlコマンド「\di」で登録済みのインデックス一覧を確認できます。
$ psql test
test=# \di
List of relations
Schema | Name | Type | Owner | Table
--------+-----------------------+-------+----------+--------
public | test01_str_idx | index | postgres | test01
public | test01_str_length_idx | index | postgres | test01
(2 row)パラメータとしてパターンが指定でき、条件にマッチする名前のインデックスのみに絞り込めます。
test=# \di *_length_idx
List of relations
Schema | Name | Type | Owner | Table
--------+-----------------------+-------+----------+--------
public | test01_str_length_idx | index | postgres | test01
(1 row)インデックスの詳細は、「\d <インデックス名>」で確認可能。
test=# \d test01_str_idx Index "public.test01_str_idx" Column | Type --------+------------------------ str | character varying(256) btree, for table "public.test01"