On Tue, Feb 14, 2012 at 3:28 PM, Federico Di Gregorio <fog@dndg.it> wrote:
> On 14/02/12 13:11, Marko Kreen wrote:
>> 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:
The callback API has been rolled back and final 9.2 will have
single-row-mode instead:
http://www.postgresql.org/docs/devel/static/libpq-single-row-mode.html
Callback API was hard to use and did not support iterative
result processing. This API should fix both problems.
--
marko