~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-updates

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/sql-cluster.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614095329-kerawur7tb6p8s71
Tags: 9.1~beta2-1
* New upstream beta release.
* Drop 03-cmsgcred-size.patch, fixed upstream.
* debian/postgresql-9.1.install: Install new pg_basebackup translations.
* debian/control: Fix the server-dev dependency to p-common to also work for
  backports.
* debian/watch: Fix for beta versions.
* debian/copyright: Add pointers to GPL and Artistic licenses for the Perl
  terms.
* debian/postgresql-9.1.preinst: Fail the package upgrade early when
  upgrading from beta-1, as the DB format changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
REV="MADE"
10
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
11
11
REL="HOME"
12
 
TITLE="PostgreSQL 9.1beta1 Documentation"
 
12
TITLE="PostgreSQL 9.1beta2 Documentation"
13
13
HREF="index.html"><LINK
14
14
REL="UP"
15
15
TITLE="SQL Commands"
26
26
HTTP-EQUIV="Content-Type"
27
27
CONTENT="text/html; charset=ISO-8859-1"><META
28
28
NAME="creation"
29
 
CONTENT="2011-04-27T21:20:33"></HEAD
 
29
CONTENT="2011-06-09T23:44:43"></HEAD
30
30
><BODY
31
31
CLASS="REFENTRY"
32
32
><DIV
44
44
VALIGN="bottom"
45
45
><A
46
46
HREF="index.html"
47
 
>PostgreSQL 9.1beta1 Documentation</A
 
47
>PostgreSQL 9.1beta2 Documentation</A
48
48
></TH
49
49
></TR
50
50
><TR
104
104
><DIV
105
105
CLASS="REFNAMEDIV"
106
106
><A
107
 
NAME="AEN63270"
 
107
NAME="AEN63282"
108
108
></A
109
109
><H2
110
110
>Name</H2
112
112
><DIV
113
113
CLASS="REFSYNOPSISDIV"
114
114
><A
115
 
NAME="AEN63275"
 
115
NAME="AEN63287"
116
116
></A
117
117
><H2
118
118
>Synopsis</H2
134
134
><DIV
135
135
CLASS="REFSECT1"
136
136
><A
137
 
NAME="AEN63279"
 
137
NAME="AEN63291"
138
138
></A
139
139
><H2
140
140
>Description</H2
240
240
><DIV
241
241
CLASS="REFSECT1"
242
242
><A
243
 
NAME="AEN63302"
 
243
NAME="AEN63314"
244
244
></A
245
245
><H2
246
246
>Parameters</H2
289
289
><DIV
290
290
CLASS="REFSECT1"
291
291
><A
292
 
NAME="AEN63320"
 
292
NAME="AEN63332"
293
293
></A
294
294
><H2
295
295
>Notes</H2
316
316
>    <TT
317
317
CLASS="COMMAND"
318
318
>CLUSTER</TT
319
 
> can re-sort the table using either an indexscan
 
319
> can re-sort the table using either an index scan
320
320
    on the specified index, or (if the index is a b-tree) a sequential
321
321
    scan followed by sorting.  It will attempt to choose the method that
322
322
    will be faster, based on planner cost parameters and available statistical
323
323
    information.
324
324
   </P
325
325
><P
326
 
>    When an indexscan is used, a temporary copy of the table is created that
 
326
>    When an index scan is used, a temporary copy of the table is created that
327
327
    contains the table data in the index order.  Temporary copies of each
328
328
    index on the table are created as well.  Therefore, you need free space on
329
329
    disk at least equal to the sum of the table size and the index sizes.
332
332
>    When a sequential scan and sort is used, a temporary sort file is
333
333
    also created, so that the peak temporary space requirement is as much
334
334
    as double the table size, plus the index sizes.  This method is often
335
 
    faster than the indexscan method, but if the disk space requirement is
 
335
    faster than the index scan method, but if the disk space requirement is
336
336
    intolerable, you can disable this choice by temporarily setting <A
337
337
HREF="runtime-config-query.html#GUC-ENABLE-SORT"
338
338
>enable_sort</A
378
378
><DIV
379
379
CLASS="REFSECT1"
380
380
><A
381
 
NAME="AEN63339"
 
381
NAME="AEN63351"
382
382
></A
383
383
><H2
384
384
>Examples</H2
418
418
><DIV
419
419
CLASS="REFSECT1"
420
420
><A
421
 
NAME="AEN63350"
 
421
NAME="AEN63362"
422
422
></A
423
423
><H2
424
424
>Compatibility</H2
454
454
><DIV
455
455
CLASS="REFSECT1"
456
456
><A
457
 
NAME="AEN63359"
 
457
NAME="AEN63371"
458
458
></A
459
459
><H2
460
460
>See Also</H2