

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://www.amazonaws.cn/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# STL\_DISK\_FULL\_DIAG
<a name="r_STL_DISK_FULL_DIAG"></a>

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

STL\_DISK\_FULL\_DIAG 仅对超级用户可见。有关更多信息，请参阅 [系统表和视图中的数据可见性](cm_chap_system-tables.md#c_visibility-of-data)。

## 表列
<a name="r_STL_DISK_FULL_DIAG-table-columns"></a>


| 列名称  | 数据类型  | 描述 | 
| --- | --- | --- | 
| currenttime | bigint | 自 2000 年 1 月 1 日以来以微秒为单位生成错误的日期和时间。 | 
| node\_num | bigint | 节点的标识符。 | 
| query\_id | bigint | 导致错误的查询的标识符。 | 
| temp\_blocks | bigint | 查询创建的临时块数。 | 

## 示例查询
<a name="r_STL_DISK_FULL_DIAG-sample-queries"></a>

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

```
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
```