选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

SYS_AUTO_TABLE_OPTIMIZATION - Amazon Redshift

SYS_AUTO_TABLE_OPTIMIZATION

记录 Amazon Redshift 对自动优化定义的表执行的自动操作。

SYS_AUTO_TABLE_OPTIMIZATION 仅对超级用户可见。有关更多信息,请参阅 系统表和视图中的数据可见性

表列

列名称 数据类型 描述
transaction_id 长整数 事务标识符。
session_id 整数 执行 Alter 命令的进程的标识符。
table_id 整数 表标识符。
alter_table_type character(32) 建议的类型。可能的值为 distkeysortkeyencode
状态 character(128) 建议的完成状态。可能的值包括 StartCompleteSkippedAbortCheckpointFailed
event_time timestamp 状态列的时间戳。
alter_from character(200) 应用建议之前表的上一个分配方式和排序键。该值被截断为 200 个字符的增量。

示例查询

在以下示例中,结果中的行显示了由 Amazon Redshift 执行的操作。

SELECT table_id, alter_table_type, status, event_time, alter_from FROM SYS_AUTO_TABLE_OPTIMIZATION; table_id | alter_table_type | status | event_time | alter_from ----------+---------------------+------------------------------------------------------+-----------------------------+----------------- 118082 | sortkey | Start | 2020-08-22 19:42:20.727049 | 118078 | sortkey | Start | 2020-08-22 19:43:54.728819 | 118082 | sortkey | Start | 2020-08-22 19:42:52.690264 | 118072 | sortkey | Start | 2020-08-22 19:44:14.793572 | 118082 | sortkey | Failed | 2020-08-22 19:42:20.728917 | 118078 | sortkey | Complete | 2020-08-22 19:43:54.792705 | SORTKEY: None; 118086 | sortkey | Complete | 2020-08-22 19:42:00.72635 | SORTKEY: None; 118082 | sortkey | Complete | 2020-08-22 19:43:34.728144 | SORTKEY: None; 118072 | sortkey | Skipped:Retry exceeds the maximum limit for a table. | 2020-08-22 19:44:46.706155 | 118086 | sortkey | Start | 2020-08-22 19:42:00.685255 | 118082 | sortkey | Start | 2020-08-22 19:43:34.69531 | 118072 | sortkey | Start | 2020-08-22 19:44:46.703331 | 118082 | sortkey | Checkpoint: progress 14.755079% | 2020-08-22 19:42:52.692828 | 118072 | sortkey | Failed | 2020-08-22 19:44:14.796071 | 116723 | sortkey | Abort:This table is not AUTO. | 2020-10-28 05:12:58.479233 | 110203 | distkey | Abort:This table is not AUTO. | 2020-10-28 05:45:54.67259 |
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。