Repository navigation
feat(postgres): partition planning and maintenance helpers - #67
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release/v1.0.0.dev17 #67 +/- ##
========================================================
- Coverage 77.77% 77.55% -0.22%
========================================================
Files 355 360 +5
Lines 18140 19335 +1195
Branches 2873 3173 +300
========================================================
+ Hits 14108 14995 +887
- Misses 3020 3217 +197
- Partials 1012 1123 +111
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Adds backend-level PostgreSQL partition planning and maintenance on the core partition plan/report contract.
PostgresPartitionPlandescribes a flat policy or a multi-level tree: RANGE, LIST and HASH first-level branches, each branch carrying its ownRangePolicy,ListPolicyorHashPolicy.PostgresPartitionMaintenanceandAsyncPostgresPartitionMaintenanceexposeensure,list,validate,drop_beforeanddrop_branch.ensurecreates only missing partitions and commits one branch unit at a time;listreadspg_inherits/pg_classrecursively and keeps the server bound text verbatim;validatereports gaps, overlaps and boundary/method mismatches without repairing anything.drop_beforedrops true leaves only and defaults todry_run=True;drop_branchis the explicit whole-branch removal and is destructive by default.No tracking issue.
Type of change
feat: A new featuredocs: Documentation only changes (if related to the new feature)test: Adding missing tests or correcting existing tests (for the new feature)perf: A code change that improves performance (if part of the feature)chore: Changes to the build process or auxiliary tools and libraries suchs as documentation generation (if related to the new feature)ci: Changes to our CI configuration files and scripts (if related to the new feature)build: Changes that affect the build system or external dependencies (if related to the new feature)revert: Reverts a previous commitBreaking Change
(If Yes, please describe the impact and migration path below):
N/A
Applicable
rhosocial-activerecordVersion Range:rhosocial-activerecord>=1.0.0.dev30,<2.0.0Related Repositories/Packages
feature/partition-maintenance); this backend'stest.ymlinstalls core from that branch until PR #130 merges.release/v1.0.0.dev17.Testing
Test Plan:
Local full-suite execution was skipped per the merge workflow; the repository CI matrix will run:
CI covers PostgreSQL 10/12/13/14/16/18 across Python 3.8–3.14.
Checklist
README.md, etc.).changelog.d/<issue_number>.<type>.md).Additional Notes
The changelog fragment is intentionally added after CI passes, as prescribed by the merge workflow.