You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aha! Well that explains why I can't find anything on the internet about it.
If I have one row that is about 1MB (bytea https://www.postgresql.org/docs/9.5/static/datatype-binary.html), does that mean I have to wait until it is entirely written in a buffer before getting access to the full buffer? Or can I get access to the buffer with an index of where it is up to? I guess I will look through the source.
Activity
1st1 commentedon Jul 20, 2016
Hi @illume,
We've only open sourced asyncpg yesterday, so I believe there aren't a lot of examples with it that you can find.
Postgres doesn't provide streaming capabilities. The closest thing you can get is to use cursors to efficiently iterate over huge result sets.
illume commentedon Jul 20, 2016
Aha! Well that explains why I can't find anything on the internet about it.
If I have one row that is about 1MB (bytea https://www.postgresql.org/docs/9.5/static/datatype-binary.html), does that mean I have to wait until it is entirely written in a buffer before getting access to the full buffer? Or can I get access to the buffer with an index of where it is up to? I guess I will look through the source.
I will also be using LISTEN and NOTIFY ( https://www.postgresql.org/docs/9.5/static/sql-listen.html ).
Anyway... looking forward to playing with it some more.
1st1 commentedon Jul 20, 2016
Yes, see issue #2. We'll implement this shortly.
illume commentedon Jul 21, 2016
Oh! Thank you very much :)
Improve diagnostics of invalid executemany() input
Improve diagnostics of invalid executemany() input