Django should add support for PostgreSQL table partitioning so that the
database engine can be used efficiently.
Currently, I can only see one library supporting partitioning (django-
postgres-extra)[https://django-postgres-
extra.readthedocs.io/en/latest/table_partitioning.html]. Still, it also
has limitations in migration because Django does not support composite
primary key, which is the key requirement for the Postgres table
partitioning.
--
Ticket URL: <https://code.djangoproject.com/ticket/34489>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> Postgresql added support for table partitioning from 10.x; currently, it
> is on 15.x.
>
> Django should add support for PostgreSQL table partitioning so that the
> database engine can be used efficiently.
>
> Currently, I can only see one library supporting partitioning (django-
> postgres-extra)[https://django-postgres-
> extra.readthedocs.io/en/latest/table_partitioning.html]. Still, it also
> has limitations in migration because Django does not support composite
> primary key, which is the key requirement for the Postgres table
> partitioning.
New description:
Postgresql added support for table partitioning from 10.x; currently, it
is on 15.x.
Django should add support for PostgreSQL table partitioning so that the
database engine can be used efficiently.
Currently, I can only see one library supporting partitioning [django-
postgres-extra](https://django-postgres-
extra.readthedocs.io/en/latest/table_partitioning.html). Still, it also
has limitations in migration because Django does not support composite
primary key, which is the key requirement for the Postgres table
partitioning.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34489#comment:1>
* status: new => closed
* resolution: => needsinfo
Comment:
Composite primary keys feature is being tracked in ticket #373 and in
MultipleColumnPrimaryKeys, and it has been discussed in the developer
mailing list multiple times (at least in [[https://groups.google.com/g
/django-developers/c/SyNwoGUtkTU/m/_RNCGnLKRCMJ|2008]],
[[https://groups.google.com/g/django-
developers/c/OeA7PcK87to/m/oAY7epAgBwAJ|2020]] and
[[https://groups.google.com/g/django-developer|2021]]).
I think that the specific feature that is being requested should be first
discussed and agreed on the developers mailing list, since I couldn't find
an existing post or ticket about it. Setting this ticket as `needsinfo`
since agreement and some high-level design is needed before accepting this
as a new feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/34489#comment:2>