Skip to content

Commit 334bf9c

Browse files
committed
Further corrections and improvements to partitioning documentation.
Amit Langote Discussion: http://postgr.es/m/[email protected]
1 parent c8b5c3c commit 334bf9c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

doc/src/sgml/ddl.sgml

+12-11
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@ VALUES ('Albany', NULL, NULL, 'NY');
29322932
tables and partitions. For example, a partition cannot have any parents
29332933
other than the partitioned table it is a partition of, nor can a regular
29342934
table inherit from a partitioned table making the latter its parent.
2935-
That means partitioned table and partitions do not participate in
2935+
That means partitioned tables and partitions do not participate in
29362936
inheritance with regular tables. Since a partition hierarchy consisting
29372937
of the partitioned table and its partitions is still an inheritance
29382938
hierarchy, all the normal rules of inheritance apply as described in
@@ -3036,11 +3036,12 @@ CREATE TABLE measurement (
30363036
<para>
30373037
You may decide to use multiple columns in the partition key for range
30383038
partitioning, if desired. Of course, this will often result in a larger
3039-
number of partitions, each of which is individually smaller.
3040-
criteria. Using fewer columns may lead to coarser-grained
3041-
A query accessing the partitioned table will have
3042-
to scan fewer partitions if the conditions involve some or all of these
3043-
columns. For example, consider a table range partitioned using columns
3039+
number of partitions, each of which is individually smaller. On the
3040+
other hand, using fewer columns may lead to a coarser-grained
3041+
partitioning criteria with smaller number of partitions. A query
3042+
accessing the partitioned table will have to scan fewer partitions if
3043+
the conditions involve some or all of these columns.
3044+
For example, consider a table range partitioned using columns
30443045
<structfield>lastname</> and <structfield>firstname</> (in that order)
30453046
as the partition key.
30463047
</para>
@@ -3167,8 +3168,8 @@ CREATE INDEX ON measurement_y2008m01 (logdate);
31673168
</para>
31683169

31693170
<para>
3170-
The simplest option for removing old data is simply to drop the partition
3171-
that is no longer necessary:
3171+
The simplest option for removing old data is to drop the partition that
3172+
is no longer necessary:
31723173
<programlisting>
31733174
DROP TABLE measurement_y2006m02;
31743175
</programlisting>
@@ -3595,8 +3596,8 @@ DO INSTEAD
35953596
<sect3 id="ddl-partitioning-inheritance-maintenance">
35963597
<title>Partition Maintenance</title>
35973598
<para>
3598-
To remove old data quickly, simply to drop the partition that is no
3599-
longer necessary:
3599+
To remove old data quickly, simply drop the partition that is no longer
3600+
necessary:
36003601
<programlisting>
36013602
DROP TABLE measurement_y2006m02;
36023603
</programlisting>
@@ -3692,7 +3693,7 @@ ANALYZE measurement;
36923693
Triggers or rules will be needed to route rows to the desired
36933694
partition, unless the application is explicitly aware of the
36943695
partitioning scheme. Triggers may be complicated to write, and will
3695-
be much slower than the tuple routing performed interally by
3696+
be much slower than the tuple routing performed internally by
36963697
declarative partitioning.
36973698
</para>
36983699
</listitem>

0 commit comments

Comments
 (0)