Commands
SHOW CREATE MATERIALIZED VIEW
Use the SHOW CREATE MATERIALIZED VIEW command to see what query was used to create the specified materialized view.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the SHOW CREATE MATERIALIZED VIEW command to see what query was used to create the specified materialized view.
SHOW CREATE MATERIALIZED VIEW mv_name;
| Parameter | Description |
|---|---|
| mv_name | The materialized view to show the query of. |
CREATE MATERIALIZED VIEW v1 AS SELECT id FROM taxi_trips;
SHOW CREATE MATERIALIZED VIEW v1;
Name | Create Sql
-----------+---------------------------------------------
public.v1 | CREATE MATERIALIZED VIEW v1 AS SELECT id FROM taxi_trips
(1 row)
Was this page helpful?