

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/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
```