Skip to content

pgwire: support decoding VECTOR and BOX2D from binary #148719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuzefovich
Copy link
Member

This commit fixes an oversight where we forgot to add decoding support for PGVector and Box2D from binary format (of PGWire extended protocol). The encoding was added in c783266 and 7fa9129, respectively. Note that for Box2D postgres doesn't support the binary format (I get an error "no binary output function available for type box2d"), but since we already introduced encoding, it seems reasonable to add decoding too.

Fixes: #147844.

Release note (bug fix): CockroachDB can now decode VECTOR and BOX2D types from Binary format of PGWire Extended Protocol.

This commit fixes an oversight where we forgot to add decoding support
for PGVector and Box2D from binary format (of PGWire extended protocol).
The encoding was added in c783266 and
7fa9129, respectively. Note that for
Box2D postgres doesn't support the binary format (I get an error "no
binary output function available for type box2d"), but since we already
introduced encoding, it seems reasonable to add decoding too.

Release note (bug fix): CockroachDB can now decode VECTOR and BOX2D
types from Binary format of PGWire Extended Protocol.
@yuzefovich yuzefovich requested review from DrewKimball and a team June 24, 2025 02:54
@yuzefovich yuzefovich requested review from a team as code owners June 24, 2025 02:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pgwire: v25.1.7: FormatBinary is not supported by pg_vector and a couple other types
2 participants