Re: libpq custom row processing

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: libpq custom row processing
Дата
Msg-id CACMqXCJO=GUD2Gks-9z5=_bGq_q3RQMXikuYP34Rdkfseu0DDA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: libpq custom row processing  (Federico Di Gregorio <fog@dndg.it>)
Ответы Re: libpq custom row processing
Список 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 по дате отправления: