pghero breaking changes
pghero 4.0.0 (August 5, 2026) is its newest release with breaking changes, 4 of them. The first: Drops support for the Ruby API in pghero 4.0.0. Every breaking API change we have recorded in pghero on RubyGems: 18 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.1.0. Source repository
Its 3.0.0 release requires Ruby 2.7 or later. Ruby end of life dates.
- From 3.0.0 to 4.0.0: 4 breaking changes in 1 version.
- From 2.0.0 to 4.0.0: 12 breaking changes in 2 versions.
pghero 4.0.0 breaking changes
- Removed
The Ruby API is no longer supported in this release. github.com - Removed
Linux packages are no longer supported as a way to install or run this release. github.com - Removed
System stats for Azure Database are no longer supported because the Ruby SDK is no longer supported. github.com - Removed
Postgres versions older than 14 are no longer supported. Upgrade your database to Postgres 14 or later before using this release. github.com
pghero 3.0.0 breaking changes
- Removed
Users on Ruby below 2.7 or Rails below 6 must upgrade them to keep using this version. github.com - Removed
Packaging for end-of-life versions is no longer provided. github.com - Removed
access_key_id
Use the aws_ prefixed method instead of access_key_id. github.com - Removed
db_instance_identifier
Use the aws_ prefixed method instead of db_instance_identifier. github.com - Removed
region
Use the aws_ prefixed method instead of region. github.com - Removed
secret_access_key
Use the aws_ prefixed method instead of secret_access_key. github.com - Behavior changed
capture_query_stats
On Postgres 12 and later, capture_query_stats only resets stats for the current database rather than the whole instance. github.com - Behavior changed
reset_query_stats
reset_query_stats only resets stats for the current database. Use reset_instance_query_stats to reset stats for the entire instance. github.com
pghero 2.0.0 breaking changes
- Removed
connection_sources
The options for the connection_sources method were removed. Code passing those options must stop doing so. github.com - Removed
locks
The locks method was removed and is no longer available. github.com - Removed
PgHero.with
The with option was removed. Call methods through PgHero.databases[name] instead. github.com - Behavior changed
Methods now return symbols for keys instead of strings. Code that looks up results by string keys must switch to symbol keys. github.com - Behavior changed
Methods now raise PgHero::NotEnabled when a feature isn't enabled. Code calling them for disabled features must rescue this error. github.com - Configuration changed
Historical query stats require the pghero_query_stats table to have query_hash and user columns. Users must migrate their existing table. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.