Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7eddade

Browse files
committed
CLUSTER cleanup
1 parent 006fd92 commit 7eddade

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/man/cluster.l

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.6 1998/03/14 22:55:21 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.7 1998/03/15 02:13:23 momjian Exp $
44
.TH CLUSTER SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
cluster - give storage clustering advice to Postgres
@@ -51,9 +51,10 @@ of a big table will not fit in the cache.
5151
Another way is to use SELECT ... INTO TABLE temp FROM ...ORDER BY ...
5252
This uses the PostgreSQL sorting code in ORDER BY to match the index,
5353
and is much faster for unordered data. You then drop the old table, use
54-
ALTER TABLE RENAME to rename 'temp' to the old name, and recreate the
55-
indexes. From then on, CLUSTER should be fast because most of the heap
56-
data has been already ordered.
54+
ALTER TABLE RENAME to rename 'temp' to the old name, and recreate the b
55+
bindexes. The only problem is that oids will not be preserved. From
56+
then on, CLUSTER should be fast because most of the heap data has
57+
already been ordered, and the existing index is used.
5758
.SH EXAMPLE
5859
.nf
5960
/*

0 commit comments

Comments
 (0)