過去に実行したSQL文の内容から、インデックスの付加に役立てる情報を取得できます。
本情報はシステムを停止するとリセットされます。
列名 | データ型 | 説明 |
|---|---|---|
advice | text | アドバイスメッセージ |
advicetimes | int | アドバイスが発生した回数 |
lastadvice | timestamp | 最後にアドバイスが発生した時刻 |
実行例
> psql postgres
psql (9.2.8)
Type "help" for help.
postgres=# select * from pgxa_index_advice;
advice | advicetimes | lastadvice
------------------------------------------------------------------------------------------------+-------------+---------------------
Add unique LF index on postgres_public_tb1.col1 Predicate: (postgres_public_tb1.col1 > 0) | 1 | 2014-10-09 13:54:24
Add unique LF index on postgres_public_tb1.col2 Predicate: (postgres_public_tb1.col2 > 0) | 1 | 2014-10-09 13:54:24
Add unique LF index on postgres_public_tb1.col3 Predicate: (postgres_public_tb1.col3 > 0) | 1 | 2014-10-09 13:54:24
Add unique LF index on postgres_public_tb1.col4 Predicate: (postgres_public_tb1.col4 = 'abc') | 1 | 2014-10-09 13:54:24
(4 行)