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
On this page
Latest version 6.2.5. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 1.0.0 to 2.0.0: 4 breaking changes in 1 version.
- From 0.6.0 to 2.0.0: 9 breaking changes in 6 versions.
pg_query 2.0.0 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 - 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 - 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 - 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
pg_query 1.0.0 breaking changes
- 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
pg_query 0.13.0 breaking changes
- 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
pg_query 0.12.0 breaking changes
- 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
pg_query 0.11.0 breaking changes
- 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
pg_query 0.9.0 breaking changes
- 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
Older versions
1 older version.
Show 1 older version
pg_query 0.6.0 breaking changes
- 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
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.