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
Late/optional decoding? #1112
Comments
Lazy decoding is something that can theoretically be implemented, and we even considered it at some point, but ultimately this doesn't seem to be very useful given that query output is usually consumed in its entirety anyway. Do you have a concrete use case in mind?
It seems like you would be better served by using a temporary table or a CTE instead.
You need introspection queries to be able to decode data (lazily or not, does not matter).
I'm not very familiar with what
Absolutely, use
|
that would only work on the very same database server... unfortunately that is not my use case. I'm shoveling data from a source DB to a destination DB, oftentimes without foreign data wrappers support...
it's described here: the author expressed his interest in merging it back to upstream asyncpg here: |
@elprans would there be any appetite for that fork to be merged back? |
I have a few interrelated questions. Some might even be blasphemous for lack of in-depth knowledge of the wire protocol on my part.
asyncpg-rkt
fork gets merged back upstream?decimal
type? I personally find that python'sdatetime
is terrible and Postgres timestamps can fall outside of the range that can be represented viadatetime
. Should such a decimal codec come withasyncpg
, or should everyone write their own if and only if they think they need it?Thank you & happy new year!
The text was updated successfully, but these errors were encountered: