Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e51ac1b8
Commit
e51ac1b8
authored
Apr 08, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor editorialization on CLUSTER reference page.
parent
7b78474d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
doc/src/sgml/ref/cluster.sgml
doc/src/sgml/ref/cluster.sgml
+19
-13
No files found.
doc/src/sgml/ref/cluster.sgml
View file @
e51ac1b8
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/cluster.sgml,v 1.4
1 2007/04/08 00:26:33 momjian
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/cluster.sgml,v 1.4
2 2007/04/08 02:07:35 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -20,7 +20,7 @@ PostgreSQL documentation
<refsynopsisdiv>
<synopsis>
CLUSTER <replaceable class="PARAMETER">tablename</replaceable>
[ USING <replaceable class="PARAMETER">indexname</replaceable> ]
CLUSTER <replaceable class="PARAMETER">tablename</replaceable>
<optional> USING <replaceable class="PARAMETER">indexname</replaceable> </optional>
CLUSTER
</synopsis>
</refsynopsisdiv>
...
...
@@ -43,22 +43,24 @@ CLUSTER
based on the index information. Clustering is a one-time operation:
when the table is subsequently updated, the changes are
not clustered. That is, no attempt is made to store new or
updated rows according to their index order. If one wishes, one can
periodically recluster by issuing the command again.
updated rows according to their index order. (If one wishes, one can
periodically recluster by issuing the command again. Also, setting
the table's FILLFACTOR storage parameter to less than 100% can aid
in preserving cluster ordering during updates, since updated rows
are preferentially kept on the same page.)
</para>
<para>
When a table is clustered, <productname>PostgreSQL</productname>
remembers
on which index it was clustered
. The form
remembers
which index it was clustered by
. The form
<command>CLUSTER <replaceable class="parameter">tablename</replaceable></command>
reclusters the table
on the same index that it was clustered
before.
reclusters the table
using the same index as
before.
</para>
<para>
<command>CLUSTER</command> without any parameter reclusters all the tables
in the
current database that the calling user owns, or all tables if called
by a superuser. (Never-clustered tables are not included.) This
<command>CLUSTER</command> without any parameter reclusters all the
previously-clustered tables in the current database that the calling user
owns, or all such tables if called by a superuser. This
form of <command>CLUSTER</command> cannot be executed inside a transaction
block.
</para>
...
...
@@ -197,12 +199,16 @@ CLUSTER;
<title>Compatibility</title>
<para>
The syntax:
There is no <command>CLUSTER</command> statement in the SQL standard.
</para>
<para>
The syntax
<synopsis>
CLUSTER <replaceable class="PARAMETER">indexname</replaceable> ON <replaceable class="PARAMETER">tablename</replaceable>
</synopsis>
is also supported for compatibility with pre-8.3 <productname>PostgreSQL</>
installations.
There is no <command>CLUSTER</command> statement in the SQL standard
.
is also supported for compatibility with pre-8.3 <productname>PostgreSQL</>
versions
.
</para>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment