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

# pg_query breaking changes

pg_query 2.0.0 (March 18, 2021) is its newest release with breaking changes, 4 of them. The first: Renamed tables_with_types. Every breaking API change we have recorded in pg_query on RubyGems: 10 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.2.5`. [Source repository](https://github.com/pganalyze/pg%5Fquery)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [1.0.0](#v-1-0-0) to [2.0.0](#v-2-0-0): 4 breaking changes in 1 version.
- From [0.6.0](#v-0-6-0) to [2.0.0](#v-2-0-0): 9 breaking changes in 6 versions.

## pg_query 2.0.0 breaking changes

pg_query 2.0.0, released March 18, 2021: 4 breaking changes.

- **Renamed** `tables_with_types`  

The tables_with_types method is renamed to tables_with_details and returns more details. Update callers to the new name; the primary tables helper is unaffected. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

The parse tree now uses the new Protobuf-based format, so code that directly reads the parsetree must be updated. Helpers such as table still work the same way. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

The parser result is now actual Ruby classes rather than hashes and arrays decoded from JSON, so code that treats the result as hashes must change. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

The Ruby deparser is replaced by the libpg_query deparser, and Ruby-side fingerprints use a new format and XXH3 hash, so stored or compared fingerprints may differ. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v2.0.0/CHANGELOG.md)

## pg_query 1.0.0 breaking changes

pg_query 1.0.0, released October 31, 2017: 1 breaking change.

- **Behavior changed**  

The parser output format changed in a backwards-incompatible way, so code that reads parse trees or fingerprints must be updated. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v1.0.0/CHANGELOG.md)

## pg_query 0.13.0 breaking changes

pg_query 0.13.0, released July 31, 2017: 1 breaking change.

- **Behavior changed**  

Fingerprinting moves to version 1.3, which ignores RangeVar.relname for some nodes and special-cases valuesLists. Fingerprints computed for the same query may now differ, so stored fingerprints may need recomputing. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v0.13.0/CHANGELOG.md)

## pg_query 0.12.0 breaking changes

pg_query 0.12.0, released July 30, 2017: 1 breaking change.

- **Behavior changed** `PgQuery.normalize`  

PgQuery.normalize now outputs $1..$N placeholders instead of ?, so code that depends on the old output format must be updated. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v0.12.0/CHANGELOG.md)

## pg_query 0.11.0 breaking changes

pg_query 0.11.0, released June 22, 2016: 1 breaking change.

- **Behavior changed** `tables`  

Table name analysis now leaves out common table expression (CTE) names. Code that expects them in #tables must read #cte_names instead. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v0.11.0/CHANGELOG.md)

## pg_query 0.9.0 breaking changes

pg_query 0.9.0, released April 17, 2016: 1 breaking change.

- **Behavior changed**  

The parse tree output format changed, so code that reads or modifies the tree directly must be updated and tested. The .parsetree translator method can ease the transition, but some incompatible changes remain. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v0.9.0/CHANGELOG.md)

## Older versions

1 older version.

### pg_query 0.6.0 breaking changes

pg_query 0.6.0, released August 5, 2015: 1 breaking change.

- **Behavior changed** `fingerprint`  

Fingerprints of queries containing IN lists are computed differently, so stored or compared fingerprint values may no longer match older ones. [github.com](https://github.com/pganalyze/pg%5Fquery/blob/v0.6.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.
