Skip to content

Commit ccef599

Browse files
authored
Merge pull request #119 from BradLucky/patch-3
Fix typos
2 parents b6d93ca + 2cff2f2 commit ccef599

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/table_partitioning.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
We HIGHLY RECOMMEND you only use this feature if you're already deeply familiar with table partitioning and aware of its advantages and disadvantages.
88

9-
Do study the PostgreSQL documentation carefuly.
9+
Do study the PostgreSQL documentation carefully.
1010

1111
.. _table_partitioning_page:
1212

@@ -16,7 +16,7 @@ Table partitioning
1616

1717
:class:`~psqlextra.models.PostgresPartitionedModel` adds support for `PostgreSQL Declarative Table Partitioning`_.
1818

19-
The following partitioning method are available:
19+
The following partitioning methods are available:
2020

2121
* ``PARTITION BY RANGE``
2222
* ``PARTITION BY LIST``
@@ -66,13 +66,13 @@ Run the following command to automatically generate a migration:
6666
6767
python manage.py pgmakemigrations
6868
69-
This will generate migrationt that creates the partitioned table with a default partition.
69+
This will generate a migration that creates the partitioned table with a default partition.
7070

7171

7272
Adding/removing partitions manually
7373
-----------------------------------
7474

75-
Postgres does not have support for automatically creating new partitions as needed. Therefor, one must manually add new partitions. Depending on the partitioning method you have chosen, the partition has to be created differently.
75+
Postgres does not have support for automatically creating new partitions as needed. Therefore, one must manually add new partitions. Depending on the partitioning method you have chosen, the partition has to be created differently.
7676

7777
Partitions are tables. Each partition must be given a unique name. :class:`~psqlextra.models.PostgresPartitionedModel` does not require you to create a model for each partition because you are not supposed to query partitions directly.
7878

@@ -323,7 +323,7 @@ Time-based partitioning
323323
strategy=PostgresCurrentTimePartitioningStrategy(
324324
size=PostgresTimePartitionSize(weeks=2),
325325
count=6,
326-
max_age=relativedelta(weeks=8),
326+
max_age=relativedelta(months=8),
327327
),
328328
),
329329
# 12 partitions ahead, each partition is 5 days

0 commit comments

Comments
 (0)