Skip to content

Commit

Permalink
Add diagram. (cockroachdb#14615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephanie Bodoff authored Jul 25, 2022
1 parent e9ec482 commit e20fe6c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions v22.1/refresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@ CockroachDB does not support materialized views that are refreshed on [transacti

The user must be the [owner](owner-to.html) of the materialized view or have [admin](security-reference/authorization.html#admin-role) privileges.

## Syntax
## Synopsis

~~~
REFRESH MATERIALIZED VIEW [CONCURRENTLY] view_name [WITH [NO] DATA]
~~~
<div>
{% remote_include https://raw.githubusercontent.com/cockroachdb/generated-diagrams/release-{{ page.version.version | replace: "v", "" }}/grammar_svg/refresh_materialized_views.html %}
</div>

## Parameters

Parameter | Description
-----------|-------------
`CONCURRENTLY` | (*Default behavior*) This keyword is a no-op, added for PostgreSQL compatibility. All materialized views are refreshed concurrently with other jobs.
`opt_concurrently` | `CONCURRENTLY` (Default behavior) This keyword has no effect. It is present for PostgreSQL compatibility. All materialized views are refreshed concurrently with other jobs.
`view_name` | The name of the materialized view to refresh.
`WITH NO DATA` | Drop the query results of the materialized view from storage.
`WITH DATA` | (*Default behavior*) Refresh the stored query results.
`opt_clear_data` | `WITH DATA` (Default behavior) Refresh the stored query results. <br>`WITH NO DATA` Drop the query results of the materialized view from storage.

## Example

Expand Down

0 comments on commit e20fe6c

Please sign in to comment.