RefLib

Reference library for AI

Back

postgresql_16:7.1.160.4 Examples

PostgreSQL 16 > Reference > SQL Commands > REFRESH MATERIALIZED VIEW > Examples

This command will replace the contents of the materialized view called order_summary using the query from the materialized view's definition, and leave it in a scannable state: REFRESH MATERIALIZED VIEW order_summary;

This command will free storage associated with the materialized view annual_statistics_basis and leave it in an unscannable state: REFRESH MATERIALIZED VIEW annual_statistics_basis WITH NO DATA;

Back