-CLUSTER [ ( option [, ...] ) ] table_name [ USING index_name ]
+CLUSTER [ ( option [, ...] ) ] [ table_name [ USING index_name ] ]
CLUSTER [ VERBOSE ] [ table_name [ USING index_name ] ]
where option can be one of:
/*****************************************************************************
*
* QUERY:
- * CLUSTER (options) [ USING ]
+ * CLUSTER (options) [ [ USING ] ]
* CLUSTER [VERBOSE] [ [ USING ] ]
* CLUSTER [VERBOSE] ON (for pre-8.3)
*
n->params = $3;
$$ = (Node *) n;
}
+ | CLUSTER '(' utility_option_list ')'
+ {
+ ClusterStmt *n = makeNode(ClusterStmt);
+
+ n->relation = NULL;
+ n->indexname = NULL;
+ n->params = $3;
+ $$ = (Node *) n;
+ }
/* unparenthesized VERBOSE kept for pre-14 compatibility */
| CLUSTER opt_verbose qualified_name cluster_index_specification
{
n->params = lappend(n->params, makeDefElem("verbose", NULL, @2));
$$ = (Node *) n;
}
+ /* unparenthesized VERBOSE kept for pre-17 compatibility */
| CLUSTER opt_verbose
{
ClusterStmt *n = makeNode(ClusterStmt);