カラムナテーブルに付加したインデックスの一覧を取得できます。
列名 | データ型 | 説明 |
|---|---|---|
tablename | text | テーブル名 |
columnname | text | カラム名 |
indextype | text | インデックス形式 |
indexname | text | インデックス名 |
uniqueindex | text | ユニークか否か |
実行例
> psql postgres
psql (x.y.z)
Type "help" for help.
postgres=# select * from pgxa_index_list;
tablename | columnname | indextype | indexname | uniqueindex
---------------------+------------+-----------+-----------+-------------
postgres_public_tb1 | col1 | HG | tb1_ix1 | Y
postgres_public_tb1 | col2 | HG | tb1_ix2 | N
postgres_public_tb1 | col3 | HG | tb1_ix3 | N
postgres_public_tb2 | col1 | DATE | tb2_ix1 | N
postgres_public_tb3 | col1 | TIME | tb3_ix1 | N
postgres_public_tb4 | col1 | DTTM | tb4_ix1 | N
postgres_public_tb5 | col1,col2 | CMP | tb5_ix1 | N
(7 row) x.y.z : PostgreSQLのバージョンが表示されます。
注意
DWHサーバ管理者ユーザー以外でビューを参照した場合、ビューが返却されません。