---
title: "pghero 4.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each pghero release removed, renamed or changed: 18 breaking changes in 3 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/pghero
last_updated: 2026-12-04
---

# 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

Latest version `4.1.0`. [Source repository](https://github.com/ankane/pghero)

Its 3.0.0 release requires [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 4 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 12 breaking changes in 2 versions.

## pghero 4.0.0 breaking changes

pghero 4.0.0, released August 5, 2026: 4 breaking changes.

- **Removed**  

The Ruby API is no longer supported in this release. [github.com](https://github.com/ankane/pghero/blob/v4.0.0/CHANGELOG.md)
- **Removed**  

Linux packages are no longer supported as a way to install or run this release. [github.com](https://github.com/ankane/pghero/blob/v4.0.0/CHANGELOG.md)
- **Removed**  

System stats for Azure Database are no longer supported because the Ruby SDK is no longer supported. [github.com](https://github.com/ankane/pghero/blob/v4.0.0/CHANGELOG.md)
- **Removed**  

Postgres versions older than 14 are no longer supported. Upgrade your database to Postgres 14 or later before using this release. [github.com](https://github.com/ankane/pghero/blob/v4.0.0/CHANGELOG.md)

## pghero 3.0.0 breaking changes

pghero 3.0.0, released September 13, 2022: 8 breaking changes.

- **Removed**  

Users on Ruby below 2.7 or Rails below 6 must upgrade them to keep using this version. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **Removed**  

Packaging for end-of-life versions is no longer provided. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **Removed** `access_key_id`  

Use the aws\_ prefixed method instead of access_key_id. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **Removed** `db_instance_identifier`  

Use the aws\_ prefixed method instead of db_instance_identifier. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **Removed** `region`  

Use the aws\_ prefixed method instead of region. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **Removed** `secret_access_key`  

Use the aws\_ prefixed method instead of secret_access_key. [github.com](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **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](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)
- **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](https://github.com/ankane/pghero/blob/v3.0.0/CHANGELOG.md)

## pghero 2.0.0 breaking changes

pghero 2.0.0, released August 8, 2017: 6 breaking changes.

- **Removed** `connection_sources`  

The options for the connection_sources method were removed. Code passing those options must stop doing so. [github.com](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)
- **Removed** `locks`  

The locks method was removed and is no longer available. [github.com](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)
- **Removed** `PgHero.with`  

The with option was removed. Call methods through PgHero.databases\[name\] instead. [github.com](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)
- **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](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)
- **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](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)
- **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](https://github.com/ankane/pghero/blob/v2.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
