---
title: "postgrex 0.23.0 Breaking Changes on Hex | Since.dev"
description: "What each postgrex release removed, renamed or changed: 31 breaking changes in 13 versions on Hex, each with its source."
canonical_url: https://since.dev/packages/hex/postgrex
last_updated: 2026-12-04
---

# postgrex breaking changes

postgrex 0.23.0 (November 22, 2026) is its newest release with breaking changes, 3 of them. The first: Connections are rejected when an auth downgrade happens while channel binding is required in postgrex 0.23.0. Every breaking API change we have recorded in postgrex on Hex: 31 breaking changes in 13 versions. Below, its 13 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.23.0`, released November 22, 2026. Apache-2.0 license. [Source repository](https://github.com/elixir-ecto/postgrex)

Its 0.22.0 release requires [Elixir 1.15](https://since.dev/calendar/elixir/1.15.md) or later. [Elixir end of life dates](https://since.dev/calendar/elixir.md).

- From [0.5.0](#v-0-5-0) to [0.23.0](#v-0-23-0): 29 breaking changes in 12 versions.

## postgrex 0.23.0 breaking changes

postgrex 0.23.0, released November 22, 2026: 3 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](https://github.com/elixir-ecto/postgrex/blob/v0.23.0/CHANGELOG.md)
- **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](https://github.com/elixir-ecto/postgrex/blob/v0.23.0/CHANGELOG.md)
- **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](https://github.com/elixir-ecto/postgrex/blob/v0.23.0/CHANGELOG.md)

## postgrex 0.22.0 breaking changes

postgrex 0.22.0, released January 10, 2026: 2 breaking changes.

- **Removed**  

Postgrex 0.22.0 requires Elixir v1.15 or newer. Upgrade Elixir before upgrading Postgrex. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.22.0/CHANGELOG.md)
- **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](https://github.com/elixir-ecto/postgrex/blob/v0.22.0/CHANGELOG.md)

## postgrex 0.21.0 breaking changes

postgrex 0.21.0, released July 31, 2025: 2 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](https://github.com/elixir-ecto/postgrex/blob/v0.21.0/CHANGELOG.md)
- **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](https://github.com/elixir-ecto/postgrex/blob/v0.21.0/CHANGELOG.md)

## postgrex 0.18.0 breaking changes

postgrex 0.18.0, released May 18, 2024: 1 breaking change.

- **Behavior changed** `ssl`  

Passing ssl: true logs a warning because it does not verify the server certificate. Use certificate verification options instead. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.18.0/CHANGELOG.md)

## postgrex 0.16.0 breaking changes

postgrex 0.16.0, released January 23, 2022: 1 breaking change.

- **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](https://github.com/elixir-ecto/postgrex/blob/v0.16.0/CHANGELOG.md)

## postgrex 0.14.0-rc.1 breaking changes

postgrex 0.14.0-rc.1, released October 29, 2018: 7 breaking changes.

- **Removed** `Postgrex.CIDR`  

Postgrex.CIDR was removed. Use Postgrex.INET to encode both inet and cidr values. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **Removed** `Postgrex.Date`  

Postgrex.Date was deprecated and has now been effectively removed. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **Removed** `Postgrex.Time`  

Postgrex.Time was deprecated and has now been effectively removed. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **Removed** `Postgrex.Timestamp`  

Postgrex.Timestamp was deprecated and has now been effectively removed. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **Behavior changed**  

The JSON encoder now invokes encode_to_iodata! rather than encode!. Check any custom JSON encoder module you rely on. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **Behavior changed** `Postgrex.execute.4`  

Postgrex.execute/4 now always returns the prepared query. Update code that expected a different return value. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)
- **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](https://github.com/elixir-ecto/postgrex/blob/v0.14.0/CHANGELOG.md)

## Older versions

7 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### postgrex 0.13.0 breaking changes

postgrex 0.13.0, released December 17, 2016: 6 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](https://github.com/elixir-ecto/postgrex/blob/v0.13.0/CHANGELOG.md)
- **Removed** `:decode_binary`  

The :decode_binary option in start_link is no longer supported; define custom types with Postgrex.Types.define instead. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.13.0/CHANGELOG.md)

And 4 more in this version.

### postgrex 0.12.0 breaking changes

postgrex 0.12.0, released September 5, 2016: 1 breaking change.

- **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](https://github.com/elixir-ecto/postgrex/blob/v0.12.0/CHANGELOG.md)

### postgrex 0.11.0 breaking changes

postgrex 0.11.0, released January 21, 2016: 1 breaking change.

- **Removed** `Postgrex.Connection`  

The connection API that lived in Postgrex.Connection now lives in Postgrex. Update calls to use Postgrex instead. [github.com](https://github.com/elixir-ecto/postgrex/blob/v0.11.0/CHANGELOG.md)

### postgrex 0.10.0 breaking changes

postgrex 0.10.0, released November 17, 2015: 1 breaking change.

- **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](https://github.com/elixir-ecto/postgrex/blob/v0.10.0/CHANGELOG.md)

### postgrex 0.9.0 breaking changes

postgrex 0.9.0, released July 12, 2015: 1 breaking change.

- **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](https://github.com/elixir-ecto/postgrex/blob/v0.9.0/CHANGELOG.md)

### postgrex 0.6.0 breaking changes

postgrex 0.6.0, released September 7, 2014: 3 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](https://github.com/elixir-ecto/postgrex/releases/tag/v0.6.0)
- **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](https://github.com/elixir-ecto/postgrex/releases/tag/v0.6.0)

And 1 more in this version.

### postgrex 0.5.0 breaking changes

postgrex 0.5.0, released May 1, 2014: 2 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](https://github.com/elixir-ecto/postgrex/releases/tag/v0.5.0)
- **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](https://github.com/elixir-ecto/postgrex/releases/tag/v0.5.0)

## 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.
