STL_DISK_FULL_DIAG - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

STL_DISK_FULL_DIAG

有关磁盘已满时记录的错误的日志信息。

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

表列

列名称 数据类型 描述
currenttime bigint 自 2000 年 1 月 1 日以来以微秒为单位生成错误的日期和时间。
node_num bigint 节点的标识符。
query_id bigint 导致错误的查询的标识符。
temp_blocks bigint 查询创建的临时块数。

示例查询

以下示例返回有磁盘已满错误时存储的数据的详细信息。

select * from stl_disk_full_diag

以下示例将 currenttime 转换为时间戳。

select '2000-01-01'::timestamp + (currenttime/1000000.0)* interval '1 second' as currenttime,node_num,query_id,temp_blocks from pg_catalog.stl_disk_full_diag;
currenttime | node_num | query_id | temp_blocks ----------------------------+----------+----------+------------- 2019-05-18 19:19:18.609338 | 0 | 569399 | 70982 2019-05-18 19:37:44.755548 | 0 | 569580 | 70982 2019-05-20 13:37:20.566916 | 0 | 597424 | 70869