From e55c8e36ae44677dca4420bed07ad09d191fdf6c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 8 Apr 2007 00:26:34 +0000 Subject: Support syntax "CLUSTER table USING index", which is more logical. Holger Schurig --- doc/src/sgml/ref/cluster.sgml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/cluster.sgml b/doc/src/sgml/ref/cluster.sgml index b93d264ae1d..c038d387c81 100644 --- a/doc/src/sgml/ref/cluster.sgml +++ b/doc/src/sgml/ref/cluster.sgml @@ -1,5 +1,5 @@ @@ -20,8 +20,7 @@ PostgreSQL documentation -CLUSTER indexname ON tablename -CLUSTER tablename +CLUSTER tablename [ USING indexname ] CLUSTER @@ -77,19 +76,19 @@ CLUSTER - indexname + tablename - The name of an index. + The name (possibly schema-qualified) of a table. - tablename + indexname - The name (possibly schema-qualified) of a table. + The name of an index. @@ -172,9 +171,9 @@ CREATE TABLE newtable AS Cluster the table employees on the basis of - its index emp_ind: + its index employees_ind: -CLUSTER emp_ind ON emp; +CLUSTER employees USING employees_ind; @@ -182,7 +181,7 @@ CLUSTER emp_ind ON emp; Cluster the employees table using the same index that was used before: -CLUSTER emp; +CLUSTER employees; @@ -198,7 +197,12 @@ CLUSTER; Compatibility - There is no CLUSTER statement in the SQL standard. + The syntax: + +CLUSTER indexname ON tablename + + is also supported for compatibility with pre-8.3 PostgreSQL installations. + There is no CLUSTER statement in the SQL standard. -- cgit v1.2.3