- 최신
- 최다 투표
- 가장 많은 댓글
Hello,
In this context, please note that STV_MV_INFO table contains DDL used while creating the materialized view.
If the materialized view is created with below command:
—> CREATE MATERIALIZED VIEW globaldata.vwdeviceplatform AS select xyz..
After creating the mv we can turn on AUTO REFRESH Using -
—> ALTER MATERIALIZED VIEW globaldata.vwdeviceplatform AUTO REFRESH YES;
[+] https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_MATERIALIZED_VIEW.html
Now even if autorefresh=’t’ in STV_MV_INFO table, the view definition will be same as below:
CREATE MATERIALIZED VIEW globaldata.vwdeviceplatform AS select xyz..
Same goes with pg_get_viewdef function. So, in both the cases you will get the DDL used while creating the mv only.
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 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전