ankane/pgslice
60.0
Adequate · 6 November 2026
796
lines of production code
Ruby
primary language
4
measurements over time
What this system is
Behavioural changes
CLI commands refactored into separate files with improved partitioning support
The CLI commands (add\_partitions, analyze, fill, prep, swap, unprep, unswap) have been split into individual files for cleaner code organization. The prep command now supports declarative partitioning with Postgres 11+ features including automatic inheritance of indexes and foreign keys to the parent table, extended statistics, generated columns, and compression (Postgres 14+). The add\_partitions command now supports tablespace specification and properly handles foreign key definitions for Postgres versions below 11. The fill command now supports batch processing with configurable batch size, sleep intervals, and source/destination table options.
lib/pgslice/cli · high confidence
Improved interrupt handling in the CLI entry point
The pgslice executable now explicitly handles SIGINT signals by trapping them to abort the process immediately, replacing the previous behavior where Interrupt exceptions were silently ignored. This ensures that users receive immediate feedback and proper termination when canceling operations via keyboard interrupt.
exe · high confidence
PgSlice v0.7.2: Postgres 13+ requirement and CLI restructuring
The pgslice library has been updated to version 0.7.2, introducing a hard requirement for PostgreSQL 13 or later (dropping support for older versions) and restructuring the codebase by splitting the CLI, helpers, and table logic into separate modules. The CLI now uses Thor for command handling, supports a \--url\ option and \PGSLICE\_URL\ environment variable for database connections, and includes a \--dry-run\ mode to preview SQL statements without execution. The default connection timeout is set to 3 seconds, and the tool enforces strict exit-on-failure behavior for CLI commands.
lib/pgslice · high confidence
Test coverage
Added test support schema with sample data; Initial test suite for PgSlice CLI commands.
Dependencies
Removal of ActiveSupport dependency and code restructuring
The library has removed the \active\_support/all\ dependency, replacing its usage with standard Ruby features to reduce startup time and external dependencies. This change is accompanied by a significant refactoring of the \lib/pgslice.rb\ file, which has been reduced from 382 lines to 23 lines by moving command logic, helpers, and SQL generation into separate modules and files.
lib · high confidence
Updated gem dependencies and Ruby version requirements
The pgslice gem now requires Ruby 3 or higher and has updated its core dependencies: 'activesupport' has been replaced by 'thor', the 'pg' driver is now pinned to version 1 or greater, and 'cgi' has been added as a dependency. Development dependencies 'rake' and 'minitest' have been moved from the gemspec to the Gemfile.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 61 → 60 (-0.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 63 → 62 (-0.3)
- Architecture 69 → 69 (+0.0)
- Maturity 54 → 53 (-1.1)
- Readiness 62 → 62 (+0.0)
- Security 99 → 99 (-0.4)
New (1)
- Hotspot: lib/pgslice/cli/fill.rb (lib/pgslice/cli/fill.rb)
Changes since last survey
- 6 commits — 6 feature/other, 0 fixes
By area
- lib/pgslice — 3 commits
- (root) — 2 commits
- .github/workflows — 1 commit
Notable commits
- change: Added validation for --batch-size option - resolves #67 [skip ci]
- change: Added validation for --sleep option [skip ci]
- change: Improved error message when no partitions [skip ci]
- change: Updated Ruby version for Docker image [skip ci]
- change: Updated checkout action [skip ci]
- change: Updated license year [skip ci]
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
ankane/pgslice was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 28a8b22cc1e5c7216fd145b6a5ebe3ec7a346568 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.