There is an item in current commitfest that might be interesting
to Psycopg - a way to provide custom callback to result
row processing. By default, libpq takes row data from
network buffer and puts it into PGresult. This can now
be overrided - column data can be converted immediately
to final format and even processed in-flight:
https://commitfest.postgresql.org/action/patch_view?id=769
Attached is current state of the doc.
Any feedback is appreciated, either about API or
documentation clarity/typos or whether all interesting
scenarios are handled.
--
marko