January 2019
Beginner
556 pages
14h 19m
English
The materialized view synopsis differs a little bit from the normal view synopsis. Materialized views are a PostgreSQL extension, but several databases, such as Oracle, support them. As shown in the following synopsis, a materialized view can be created in a certain TABLESPACE, as well as a storage_parameter, which is logical, since materialized views are physical objects:
CREATE MATERIALIZED VIEW [ IF NOT EXISTS ] table_name [ (column_name [, ...] ) ] [ WITH ( storage_parameter [= value] [, ... ] ) ] [ TABLESPACE tablespace_name ] AS query [ WITH [ NO ] DATA ]
At the time of the creation of a materialized view, it can be populated with data or left empty. If it is not populated, retrieving data from the unpopulated materialized ...
Read now
Unlock full access