Skip to content
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

Use BINARY mode for results #126

Open
craff opened this issue Jul 17, 2022 · 1 comment
Open

Use BINARY mode for results #126

craff opened this issue Jul 17, 2022 · 1 comment

Comments

@craff
Copy link

craff commented Jul 17, 2022

Hello,

I read in the documentation of postgresql that results of query can be sent to the client in BINARY, I guess it should
improve efficiency and could even be simpler (the coding and decoding with string are often catchy).

So it would be nice if pgx whas using BINARY when possible instead of STRING ?

@brendanlong
Copy link
Contributor

The complicated thing with binary mode is that it's mostly undocumented ("do whatever libpq does"), so the code will probably be simpler once it's implemented, but it's much harder to implement. There's some discussion of it on #38 (comment)

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

No branches or pull requests

2 participants