Re: libpq custom row processing - Mailing list psycopg

From Marko Kreen
Subject Re: libpq custom row processing
Date
Msg-id CACMqXCJO=GUD2Gks-9z5=_bGq_q3RQMXikuYP34Rdkfseu0DDA@mail.gmail.com
Whole thread Raw
In response to Re: libpq custom row processing  (Federico Di Gregorio <fog@dndg.it>)
Responses Re: libpq custom row processing
List psycopg
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

psycopg by date:

Previous
From: Richard Harley
Date:
Subject: Re: Problem with Zope 2.13.15, python 2.6.6 psycopg2-2.4.5, pg 9.0.3
Next
From: Federico Di Gregorio
Date:
Subject: Re: libpq custom row processing