Random query errors on materialized view with AutoRefresh On

0

one of our users is getting an error occasionally on a view that has autorefresh on. the name of the table is vwdeviceplatform. Is it because the view is being autofreshed at the time they are running the query? Any way to avoid that? We don't want to schedule manual refreshes.

Invalid operation. Relation "mv_tbl_vwdeviceplatform_0" does not exist.

User is using dbeaver

已提問 1 年前檢視次數 262 次
1 個回答
0

Hello,

In this context, to check whether the error is indeed due to MV being refreshed at the time of the query, you can co-relate the timings that you are facing this error with the information from the system table SVL_MV_REFRESH_STATUS. The SVL_MV_REFRESH_STATUS view contains a row for the refresh activity of materialized views.

[+] https://docs.aws.amazon.com/redshift/latest/dg/r_SVL_MV_REFRESH_STATUS.html 

Sample query to view the refresh status of materialized views -

select * from svl_mv_refresh_status;

You can compare the starttime, endtime columns with the time of the occurrence of the error.

That being said, if you would like resource based troubleshooting, please raise a support case with AWS for further information. If a support case has already been created please be assured that we will get back to you and assist you in the best way possible.

AWS
已回答 1 年前

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

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

回答問題指南