Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Fix encoding of domains over composite types
* Enforce integer bounds in type encoders
* Decode the `void` type on CockroachDB (`voidsend`/`voidout`)
* Decode the `inet`, `pg_lsn`, and `ltree` types on CockroachDB (`inetsend`/`pg_lsnsend`/`ltreesend`)

## v0.22.3 (2026-07-09)

Expand Down
4 changes: 3 additions & 1 deletion lib/postgrex/extensions/inet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ defmodule Postgrex.Extensions.INET do
@moduledoc false

import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "cidr_send", send: "inet_send"
# CockroachDB names inet's send proc without an underscore (inetsend),
# so match its spelling in addition to Postgres'.
use Postgrex.BinaryExtension, send: "cidr_send", send: "inet_send", send: "inetsend"

@octet_range 0..255
@hextet_range 0..65535
Expand Down
4 changes: 3 additions & 1 deletion lib/postgrex/extensions/int8.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
defmodule Postgrex.Extensions.Int8 do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "int8send", send: "pg_lsn_send"
# CockroachDB names pg_lsn's send proc without an underscore (pg_lsnsend),
# so match its spelling in addition to Postgres'.
use Postgrex.BinaryExtension, send: "int8send", send: "pg_lsn_send", send: "pg_lsnsend"

@int8_range -9_223_372_036_854_775_808..9_223_372_036_854_775_807

Expand Down
4 changes: 3 additions & 1 deletion lib/postgrex/extensions/ltree.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
defmodule Postgrex.Extensions.Ltree do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "ltree_send"
# CockroachDB names ltree's send proc without an underscore (ltreesend),
# so match its spelling in addition to Postgres'.
use Postgrex.BinaryExtension, send: "ltree_send", send: "ltreesend"

def init(opts), do: Keyword.fetch!(opts, :decode_binary)

Expand Down
Loading