Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4501ec

Browse files
committed
Remove ALL from CLUSTER ALL. Use just CLUSTER.
1 parent72cf681 commitc4501ec

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

‎doc/src/sgml/ref/cluster.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/cluster.sgml,v 1.21 2002/11/15 03:09:35 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/cluster.sgml,v 1.22 2002/11/18 17:12:06 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -23,7 +23,7 @@ PostgreSQL documentation
2323
<synopsis>
2424
CLUSTER <replaceable class="PARAMETER">indexname</replaceable> ON <replaceable class="PARAMETER">tablename</replaceable>
2525
CLUSTER <replaceable class="PARAMETER">tablename</replaceable>
26-
CLUSTER ALL
26+
CLUSTER
2727
</synopsis>
2828

2929
<refsect2 id="R2-SQL-CLUSTER-1">
@@ -114,8 +114,8 @@ CLUSTER
114114
</para>
115115

116116
<para>
117-
In calls to<command>CLUSTER ALL</command>, all the tables in the database
118-
that the calling user ownsare clustered usingthe saved information. This
117+
A simple<command>CLUSTER</command> clusters all the tables in the database
118+
that the calling user ownsand usesthe saved cluster information. This
119119
form of <command>CLUSTER</command> cannot be called from inside a
120120
transaction or function.
121121
</para>
@@ -225,7 +225,7 @@ CLUSTER emp;
225225
Cluster all the tables on the database that have previously been clustered:
226226
</para>
227227
<programlisting>
228-
CLUSTER ALL;
228+
CLUSTER;
229229
</programlisting>
230230
</refsect1>
231231

‎src/backend/commands/cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.94 2002/11/15 03:09:35 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.95 2002/11/18 17:12:07 momjian Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -728,7 +728,7 @@ cluster(ClusterStmt *stmt)
728728
*rvs;
729729

730730
/*
731-
* We cannot run CLUSTERALLinside a user transaction block; if we were inside
731+
* We cannot run CLUSTER inside a user transaction block; if we were inside
732732
* a transaction, then our commit- and start-transaction-command calls
733733
* would not have the intended effect!
734734
*/

‎src/backend/parser/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.379 2002/11/15 03:09:35 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.380 2002/11/18 17:12:07 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -3762,7 +3762,7 @@ CreateConversionStmt:
37623762
*QUERY:
37633763
*cluster <index_name> on <qualified_name>
37643764
*cluster <qualified_name>
3765-
*cluster ALL
3765+
*cluster
37663766
*
37673767
*****************************************************************************/
37683768

@@ -3781,7 +3781,7 @@ ClusterStmt:
37813781
n->indexname =NULL;
37823782
$$ = (Node*)n;
37833783
}
3784-
| CLUSTER ALL
3784+
| CLUSTER
37853785
{
37863786
ClusterStmt *n = makeNode(ClusterStmt);
37873787
n->relation =NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp