everly-gif commented on code in PR #19842:
URL: https://github.com/apache/shardingsphere/pull/19842#discussion_r937321651
##########
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4:
##########
@@ -1056,10 +1056,10 @@ foreignServerVersion
alterStatistics
: ALTER STATISTICS
- ( ifExists? anyName SET STATISTICS signedIconst
Review Comment:
you mean the postgres **gram.y** file right?
```
AlterStatsStmt:
ALTER STATISTICS any_name SET STATISTICS SignedIconst
{
AlterStatsStmt *n =
makeNode(AlterStatsStmt);
n->defnames = $3;
n->missing_ok = false;
n->stxstattarget = $6;
$$ = (Node *) n;
}
| ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS
SignedIconst
{
AlterStatsStmt *n =
makeNode(AlterStatsStmt);
n->defnames = $5;
n->missing_ok = true;
n->stxstattarget = $8;
$$ = (Node *) n;
}
;
```
There if exists is supported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]