]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropmaterializedview.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropmaterializedview.txt
1
2 DROP MATERIALIZED VIEW
3
4    DROP MATERIALIZED VIEW — remove a materialized view
5
6 Synopsis
7
8 DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP MATERIALIZED VIEW drops an existing materialized view. To execute
13    this command you must be the owner of the materialized view.
14
15 Parameters
16
17    IF EXISTS
18           Do not throw an error if the materialized view does not exist. A
19           notice is issued in this case.
20
21    name
22           The name (optionally schema-qualified) of the materialized view
23           to remove.
24
25    CASCADE
26           Automatically drop objects that depend on the materialized view
27           (such as other materialized views, or regular views), and in
28           turn all objects that depend on those objects (see
29           Section 5.15).
30
31    RESTRICT
32           Refuse to drop the materialized view if any objects depend on
33           it. This is the default.
34
35 Examples
36
37    This command will remove the materialized view called order_summary:
38 DROP MATERIALIZED VIEW order_summary;
39
40 Compatibility
41
42    DROP MATERIALIZED VIEW is a PostgreSQL extension.
43
44 See Also
45
46    CREATE MATERIALIZED VIEW, ALTER MATERIALIZED VIEW, REFRESH MATERIALIZED
47    VIEW