You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/table_partitioning.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
We HIGHLY RECOMMEND you only use this feature if you're already deeply familiar with table partitioning and aware of its advantages and disadvantages.
8
8
9
-
Do study the PostgreSQL documentation carefuly.
9
+
Do study the PostgreSQL documentation carefully.
10
10
11
11
.. _table_partitioning_page:
12
12
@@ -16,7 +16,7 @@ Table partitioning
16
16
17
17
:class:`~psqlextra.models.PostgresPartitionedModel` adds support for `PostgreSQL Declarative Table Partitioning`_.
18
18
19
-
The following partitioning method are available:
19
+
The following partitioning methods are available:
20
20
21
21
* ``PARTITION BY RANGE``
22
22
* ``PARTITION BY LIST``
@@ -66,13 +66,13 @@ Run the following command to automatically generate a migration:
66
66
67
67
python manage.py pgmakemigrations
68
68
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.
70
70
71
71
72
72
Adding/removing partitions manually
73
73
-----------------------------------
74
74
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.
76
76
77
77
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.
0 commit comments