SYS_ANALYZE_HISTORY
ANALYZE オペレーションの詳細を記録します。
SYS_ANALYZE_HISTORY はスーパーユーザーにのみ表示されます。詳細については、「システムテーブルとビューのデータの可視性」を参照してください。
テーブルの列
列名 | データ型 | 説明 |
---|---|---|
user_id | integer | エントリを生成したユーザーの ID。 |
transaction_id | long | トランザクション ID。 |
query_id | long | SYS_QUERY_HISTORY 内のクエリ識別子。 |
database_name | char(30) | データベースの名前。 |
table_name | char(30) | テーブルの名前。 |
table_id | integer | テーブルの ID。 |
is_automatic | char(1) | オペレーションにデフォルトで Amazon Redshift の ANALYZE オペレーションが含まれている場合、値は true (t) です。ANALYZE コマンドが明示的に実行された場合、値は false (f) です。 |
ステータス | char(15) | ANALYZE コマンドの結果。指定できる値は、Full、Skipped、および PredicateColumn です。 |
start_time | timestamp | ANALYZE オペレーションの実行を開始した時刻 (UTC)。 |
end_time | timestamp | ANALYZE オペレーションの実行を終了した時刻 (UTC)。 |
行 | double | テーブル内の行の合計数。 |
modified_rows | double | 最後の ANALYZE オペレーション以降に変更された合計行数。 |
analyze_threshold_percent | integer | analyze_threshold_percent パラメータの値。 |
last_analyze_time | timestamp | テーブルが前回分析された時刻 (UTC)。 |
サンプルクエリ
user_id | transaction_id | database_name | schema_name | table_name | table_id | is_automatic | Status | start_time | end_time | rows | modified_rows | analyze_threshold_percent | last_analyze_time ---------+----------------+---------------+-------------+---------------------+----------+--------------+--------+----------------------------+----------+-----------------+------+---------------+---------------------------+--------------------- 101 | 8006 | dev | public | test_table_562bf8dc | 110427 | f | Full | 2023-09-21 18:33:08.504646 | 2023-09-21 18:33:24.296498 | 5 | 5 | 0 | 2000-01-01 00:00:00