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

Commit 4bf329b

Browse files
author
Liudmila Mantrova
committed
DOC: implemening A.Lakhin's feedback
1 parent 3cf3992 commit 4bf329b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/src/sgml/pgpathman.sgml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ SET pg_pathman.enable = t;</programlisting>
133133
<para><emphasis role="strong">Contents</emphasis></para>
134134
<para><link linkend="pg-pathman-choosing-partitioning-strategies">Choosing Partitioning Strategies</link></para>
135135
<para><link linkend="pg-pathman-running-non-blocking-data-migration">Running Non-Blocking Data Migration</link></para>
136-
<para><link linkend="pg-pathman-partitioning-by-expression">Partitioning by Expression</link></para>
136+
<para><link linkend="pg-pathman-partitioning-by-expression">Partitioning by a Single Expression</link></para>
137137
<para><link linkend="pg-pathman-partitioning-by-comp-key">Partitioning by Composite Key</link></para>
138138
<para>
139139
As your database grows, indexing mechanisms may become inefficient
@@ -243,7 +243,7 @@ replace_hash_partition(old_partition REGCLASS,
243243
when you insert data outside of the already covered range.</para>
244244
<programlisting>
245245
create_range_partitions(relation REGCLASS,
246-
expression TEXT,
246+
expression TEXT,
247247
start_value ANYELEMENT,
248248
p_interval ANYELEMENT | INTERVAL,
249249
p_count INTEGER DEFAULT NULL,
@@ -354,10 +354,11 @@ SELECT stop_concurrent_part_task(relation REGCLASS);
354354
</para></tip>
355355
</sect3>
356356
<sect3 id="pg-pathman-partitioning-by-expression">
357-
<title>Partitioning by Expression</title>
357+
<title>Partitioning by a Single Expression</title>
358358
<para>
359359
For both range and hash partitioning strategies, <filename>pg_pathman</filename>
360-
supports partitioning by expression that returns a single scalar value. The partitioning expression
360+
supports partitioning by expression that returns a single scalar value.
361+
The partitioning expression
361362
can reference a table column, as well as calculate the partitioning key
362363
based on one or more column values.
363364
</para>
@@ -500,14 +501,14 @@ create type test_key as (year float8, month float8);
500501
To enable automatic partition naming, run the <literal>create_naming_sequence()</literal>
501502
function passing the table name as an argument:
502503
<programlisting>
503-
select create_naming_sequence('test');
504+
SELECT create_naming_sequence('test');
504505
</programlisting>
505506
</para>
506507
<para>
507508
Register the <structname>test</structname> table with
508509
<filename>pg_pathman</filename>, specifying the partitioning key you are going to use:
509510
<programlisting>
510-
select add_to_pathman_config('test',
511+
SELECT add_to_pathman_config('test',
511512
'( extract(year from logdate),
512513
extract(month from logdate) )::test_key',
513514
NULL);
@@ -516,7 +517,7 @@ select add_to_pathman_config('test',
516517
<para>Create a partition that includes all the data in the range of ten years,
517518
starting from January of the current year:
518519
<programlisting>
519-
select add_range_partition('test',
520+
SELECT add_range_partition('test',
520521
(extract(year from current_date), 1)::test_key,
521522
(extract(year from current_date + '10 years'::interval), 1)::test_key);
522523
</programlisting>

0 commit comments

Comments
 (0)