本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
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