PostgreSQL - Views and Materialized ViewsWhich statement about refreshing a materialized view is true?AIt automatically updates whenever the base tables change.BIt cannot be refreshed once created.CYou must manually refresh it to see updated data.DIt refreshes only when the database restarts.Check Answer
Step-by-Step SolutionSolution:Step 1: Recall how materialized views updateMaterialized views do not update automatically; they require manual refresh.Step 2: Eliminate incorrect optionsAutomatic updates or refresh on restart are not supported; refresh is possible anytime manually.Final Answer:You must manually refresh it to see updated data. -> Option CQuick Check:Materialized View Refresh = Manual [OK]Quick Trick: Materialized views need manual refresh to update data [OK]Common Mistakes:Assuming automatic refresh on data changeBelieving refresh happens on database restartThinking refresh is impossible
Master "Views and Materialized Views" in PostgreSQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PostgreSQL Quizzes Common Table Expressions - Why CTEs matter in PostgreSQL - Quiz 5medium Full-Text Search - Why full-text search matters - Quiz 7medium Full-Text Search - Highlighting with ts_headline - Quiz 9hard JSON and JSONB - Arrow operators (-> and ->>) - Quiz 7medium JSON and JSONB - Arrow operators (-> and ->>) - Quiz 5medium JSON and JSONB - JSON vs JSONB differences - Quiz 6medium Joins in PostgreSQL - LEFT JOIN and RIGHT JOIN - Quiz 11easy Joins in PostgreSQL - NATURAL join and its risks - Quiz 8hard Set Operations and Advanced Queries - UNION and UNION ALL - Quiz 9hard Window Functions in PostgreSQL - Practical window function patterns - Quiz 3easy