Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Postgres Declarative Partitioning #3099

Open
1 of 5 tasks
lagzi opened this issue Nov 16, 2022 · 1 comment
Open
1 of 5 tasks

Support Postgres Declarative Partitioning #3099

lagzi opened this issue Nov 16, 2022 · 1 comment

Comments

@lagzi
Copy link

lagzi commented Nov 16, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

  • Add support for declaring tables as PARTITIONED BY RANGE/HASH/LIST ("id"), along with creating a default partition.
  • Initially support partition key being the ID primary key
  • Handle unique constraint limitations that come with partitions.
  • Add API method for detaching the default partition, creating a new default, and reattaching the old default with an appropriate range. This will enable creating partitions on demand at a constant interval, without having a partition key be a timestamp.

Motivation 🔦

Partitioning enables us to delete old data in bulk fast. Deleting data from big tables takes a very long time so we partition the data by date (technically by ID as explained above). This way we can delete data from a single partition in a matter of seconds.

Thanks!

@asankov
Copy link

asankov commented Sep 12, 2024

Hi, team. This issue has been open for 2 years and it looks there is some interest to it (14 reactions).

My team is also interested in this feature, and we're interested in contributing to it. Is this something you'd be willing to accept as a contribution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants