macOS
brew install pgslicelocal Homebrew formula metadata
brew / rank 7340
Postgres partitioning as easy as pie. Version 0.7.2 via Homebrew; verified 2026-09-13.
install
brew install pgslicelocal Homebrew formula metadata
overview
Postgres partitioning as easy as pie
history
pgslice is a PostgreSQL partition-management CLI designed to convert new or populated tables to range partitioning with minimal application changes and downtime.
Andrew Kane's pgslice first shipped in April 2016 as a Ruby command-line tool for partitioning PostgreSQL tables with minimal downtime.
The project added PostgreSQL declarative partitioning and foreign-key support in 2017, then continued tracking PostgreSQL and Ruby compatibility, including generated columns and newer PostgreSQL releases.
The official project describes pgslice as battle-tested at Instacart.
Distribution expanded beyond RubyGems to include Homebrew and Docker, making the command available through several packaging cultures.
Operators set the `PGSLICE_URL` environment variable, prepare an intermediate partitioned table, create partitions, fill it in batches, analyze it, swap it with the original table, and then capture any remaining rows.
The CLI prints executed SQL and supports `--dry-run`; rolling partition creation and archival can keep database size under control.
pgslice packages a careful, multi-stage PostgreSQL partition migration into a repeatable CLI while still printing the SQL it executes and offering dry-run and lock-safety controls.
It is useful to database operators who want declarative partitioning or rolling archival without installing a PostgreSQL server extension.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pgslice | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ankane/pgslice
install metadata
| Package key | brew:pgslice |
|---|---|
| Version | 0.7.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pgslice |
| Homepage | https://github.com/ankane/pgslice |
| Repository | https://github.com/ankane/pgslice |
| License | MIT |
| Source archive | https://github.com/ankane/pgslice/archive/refs/tags/v0.7.2.tar.gz |
| Last updated | 2026-09-13T11:36:57Z |
| Pulse | updated |
| Dependencies | libpq, ruby |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pgslice |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.