Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1037,11 +1037,12 @@ public SQLStatement parseRefresh() {

acceptIdentifier("MATERIALIZED");

accept(Token.VIEW);

if (lexer.identifierEquals("CONCURRENTLY")) {
lexer.nextToken();
stmt.setConcurrently(true);
}
accept(Token.VIEW);

stmt.setName(this.exprParser.name());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9302,12 +9302,12 @@ public boolean visit(SQLShowCreateMaterializedViewStatement x) {
public boolean visit(SQLRefreshMaterializedViewStatement x) {
print0(ucase ? "REFRESH MATERIALIZED" : "refresh materialized");

print0(ucase ? " VIEW " : " view ");

if (x.isConcurrently()) {
print0(ucase ? " CONCURRENTLY" : " concurrently");
print0(ucase ? "CONCURRENTLY " : "concurrently ");
}

print0(ucase ? " VIEW " : " view ");

x.getName().accept(this);

if (x.isWithNoData()) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/resources/bvt/parser/postgresql/15.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
refresh materialized concurrently view v1 with no data
refresh materialized view concurrently v1 with no data
--------------------
REFRESH MATERIALIZED CONCURRENTLY VIEW v1 WITH NO DATA
REFRESH MATERIALIZED VIEW CONCURRENTLY v1 WITH NO DATA