Redshift internal queries

0

I see below queries in the stl_query table, what do they mean?

small table conversion: 3623965
small table validation: select sum(rows), sum(sorted_rows) from stv_tbl_perm where table = {tableid};

nmakb
已提問 5 年前檢視次數 400 次
2 個答案
0
已接受的答案

Redshift checks the status of AUTO distributed tables periodically and converts the distribution type as needed. https://docs.aws.amazon.com/redshift/latest/dg/c_choosing_dist_sort.html

AUTO distribution
With AUTO distribution, Amazon Redshift assigns an optimal distribution style based on the size of the table data. For example, Amazon Redshift initially assigns ALL distribution to a small table, then changes to EVEN distribution when the table grows larger. When a table is changed from ALL to EVEN distribution, storage utilization might change slightly. The change in distribution occurs in the background, in a few seconds. Amazon Redshift never changes the distribution style from EVEN to ALL. To view the distribution style applied to a table, query the PG_CLASS_INFO system catalog view. For more information, see Viewing Distribution Styles. If you don't specify a distribution style with the CREATE TABLE statement, Amazon Redshift applies AUTO distribution.

已回答 5 年前
profile picture
專家
已審閱 6 個月前
0

I have no idea, but it makes me think of VACUUM checking to see if it should skip a table or not (because it's already sorted enough).

Toebs2
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南