postgrex breaking changes
Updated December 4, 2026
On this page
Latest version 0.23.0, released November 22, 2026. Apache-2.0 license. Source repository
Its 0.22.0 release requires Elixir 1.15 or later. Elixir end of life dates.
postgrex 0.23.0 breaking changes
- Behavior changed
Authentication that falls back to a weaker method is now refused when channel binding is required. Users who relied on such a downgrade must configure the server or client to use a supported method. github.com - Behavior changed
Timestamptz values outside the 64-bit wire format range are now rejected rather than sent. Code that writes such values must keep them within the supported range. github.com - Behavior changed
Integer values outside the bounds of their Postgres type are now rejected by the encoders instead of being accepted. Code that sent out-of-range integers must now send values within range. github.com
postgrex 0.22.0 breaking changes
- Removed
Postgrex 0.22.0 requires Elixir v1.15 or newer. Upgrade Elixir before upgrading Postgrex. github.com - Behavior changed
Postgrex now retries automatically when a connection drops on the first read or write, so queries may run more than once. Check that any non-idempotent queries can tolerate a retry. github.com
postgrex 0.21.0 breaking changes
- Removed
The package now requires Erlang/OTP 25 or later. Users on older Erlang/OTP versions must upgrade before using this release. github.com - Configuration changed
The PGHOST environment variable no longer overrides a host set explicitly in the endpoint configuration. Code relying on PGHOST taking precedence must set the host explicitly instead. github.com
postgrex 0.18.0 breaking changes
- Behavior changed
ssl
Passing ssl: true logs a warning because it does not verify the server certificate. Use certificate verification options instead. github.com
postgrex 0.16.0 breaking changes
- Behavior changed
The release now requires Elixir v1.11 or newer, so projects on older Elixir versions must upgrade before using this version. github.com
postgrex 0.14.0-rc.1 breaking changes
- Removed
Postgrex.CIDR
Postgrex.CIDR was removed. Use Postgrex.INET to encode both inet and cidr values. github.com - Removed
Postgrex.Date
Postgrex.Date was deprecated and has now been effectively removed. github.com - Removed
Postgrex.Time
Postgrex.Time was deprecated and has now been effectively removed. github.com - Removed
Postgrex.Timestamp
Postgrex.Timestamp was deprecated and has now been effectively removed. github.com - Behavior changed
The JSON encoder now invokes encode_to_iodata! rather than encode!. Check any custom JSON encoder module you rely on. github.com - Behavior changed
Postgrex.execute.4
Postgrex.execute/4 now always returns the prepared query. Update code that expected a different return value. github.com - Behavior changed
Postgrex.INET
Encoding a Postgrex.INET with netmask nil adds a /32 (IPv4) or /128 (IPv6) netmask. Decoding removes those netmasks, so decoded values have netmask nil. github.com
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
postgrex 0.13.0 breaking changes
- Removed
:copy_data
The :copy_data query option is no longer supported; copy data into the database by passing a collectable instead. github.com - Removed
:decode_binary
The :decode_binary option in start_link is no longer supported; define custom types with Postgrex.Types.define instead. github.com
And 4 more in this version.
postgrex 0.12.0 breaking changes
- Behavior changed
DBConnection.ConnectionError
On a connection error, Postgrex now raises DBConnection.ConnectionError. Code that rescues or matches the previous exception from connection failures must be updated to match this error. github.com
postgrex 0.11.0 breaking changes
- Removed
Postgrex.Connection
The connection API that lived in Postgrex.Connection now lives in Postgrex. Update calls to use Postgrex instead. github.com
postgrex 0.10.0 breaking changes
- Behavior changed
Queries now decode results in the client process instead of the connection process, and a query given the wrong number of parameters raises an error. Code relying on the previous decoding location or on silently accepting bad parameter... github.com
postgrex 0.9.0 breaking changes
- Behavior changed
Postgrex.Result.rows
Each row in Postgrex.Result.rows is now a list of columns rather than a tuple. Code that pattern-matches or indexes rows as tuples must be updated to use lists. github.com
postgrex 0.6.0 breaking changes
- Behavior changed
Postgrex.Error.postgres
The postgres field of Postgrex.Error is converted from a keyword list to a map, so code that reads it as a keyword list must be updated. github.com - Signature changed
Postgrex.Connect.query
The params parameter of Postgrex.Connect.query is no longer optional; pass an empty list when the query has no parameters. github.com
And 1 more in this version.
postgrex 0.5.0 breaking changes
- Behavior changed
Postgrex.Result
Code that treats Postgrex.Result as a plain map may need updating, since structs do not support all map operations such as Access syntax. github.com - Behavior changed
Postgrex.TypeInfo
Code that treats Postgrex.TypeInfo as a plain map may need updating, since structs do not support all map operations such as Access syntax. 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.