CLUSTER indexname ON tablename
CLUSTER tablename
-CLUSTER ALL
+CLUSTER
- In calls to CLUSTER ALL, all the tables in the database
- that the calling user owns are clustered using the saved information. This
+ A simple CLUSTER clusters all the tables in the database
+ that the calling user owns and uses the saved cluster information. This
form of CLUSTER cannot be called from inside a
transaction or function.
Cluster all the tables on the database that have previously been clustered:
-CLUSTER ALL;
+CLUSTER;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.94 2002/11/15 03:09:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.95 2002/11/18 17:12:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*rvs;
/*
- * We cannot run CLUSTER ALL inside a user transaction block; if we were inside
+ * We cannot run CLUSTER inside a user transaction block; if we were inside
* a transaction, then our commit- and start-transaction-command calls
* would not have the intended effect!
*/
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.379 2002/11/15 03:09:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.380 2002/11/18 17:12:07 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
* QUERY:
* cluster on
* cluster
- * cluster ALL
+ * cluster
*
*****************************************************************************/
n->indexname = NULL;
$$ = (Node*)n;
}
- | CLUSTER ALL
+ | CLUSTER
{
ClusterStmt *n = makeNode(ClusterStmt);
n->relation = NULL;