Skip to content

Commit 8fc719d

Browse files
committed
pathman: documentation fix
1 parent 3e6cf13 commit 8fc719d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/pg_pathman/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Consider an example of RANGE partitioning. Create a table with numerical or date
135135
CREATE TABLE range_rel (
136136
id SERIAL PRIMARY KEY,
137137
dt TIMESTAMP);
138-
INSERT INTO range_rel (dt) SELECT g FROM generate_series('2010-01-01'::date, '2015-12-31'::date, '1 day') as g;
138+
INSERT INTO range_rel (dt) SELECT g FROM generate_series('2010-01-01'::date, '2014-12-31'::date, '1 day') as g;
139139
```
140140
Run create_range_partitions() function to create partitions so that each partition would contain data for one month:
141141
```
@@ -153,7 +153,7 @@ To split partition use split_range_partition() function:
153153
```
154154
SELECT split_range_partition('range_rel_1', '2010-02-15'::date);
155155
```
156-
Now let's create new partitions. You can use append_partition() or prepend_partition() functions:
156+
Now let's create new partition. You can use append_partition() or prepend_partition() functions:
157157
```
158158
SELECT append_partition('range_rel');
159159
SELECT prepend_partition('range_rel');

contrib/pg_pathman/README.rus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ SELECT partition_data('hash_rel');
137137
CREATE TABLE range_rel (
138138
id SERIAL PRIMARY KEY,
139139
dt TIMESTAMP);
140-
INSERT INTO range_rel (dt) SELECT g FROM generate_series('2010-01-01'::date, '2015-12-31'::date, '1 day') as g;
140+
INSERT INTO range_rel (dt) SELECT g FROM generate_series('2010-01-01'::date, '2014-12-31'::date, '1 day') as g;
141141
```
142142
Разобьем таблицу на 60 секций так, чтобы каждая секция содержала данные за один месяц:
143143
```

0 commit comments

Comments
 (0)