A materialized view is a query-defined relation whose result is persisted. Unlike an ordinary view, it does not execute the underlying query for every read; clients see the same result until an explicit refresh. This suits resource-intensive queries and reports that do not require current data. section 2.7
Monthly sales report
An e-commerce platform can persist monthly revenue and order totals with `CREATE MATERIALIZED VIEW sales.monthly_sales_summary AS ...`. After a new order, querying the view still returns the previous totals. Running `REFRESH MATERIALIZED VIEW sales.monthly_sales_summary;` recomputes the result, after which the report includes the new order.




