Re: [HACKERS] libpq Alternate Row Processor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] libpq Alternate Row Processor
Дата
Msg-id 20826.1486186289@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] libpq Alternate Row Processor  (Kyle Gearhart <kyle.gearhart@indigohill.io>)
Ответы Re: [HACKERS] libpq Alternate Row Processor  (Kyle Gearhart <kyle.gearhart@indigohill.io>)
Список pgsql-hackers
Kyle Gearhart <kyle.gearhart@indigohill.io> writes:
> The guts of pqRowProcessor in libpq does a good bit of work to maintain the internal data structure of a PGresult.
Thereare a few use cases where the caller doesn't need the ability to access the result set row by row, column by
columnusing PQgetvalue.  Think of an ORM that is just going to copy the data from PGresult for each row into its own
structures.

It seems like you're sort of reinventing "single row mode":
https://www.postgresql.org/docs/devel/static/libpq-single-row-mode.html

Do we really need yet another way of breaking the unitary-query-result
abstraction?
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [HACKERS] Packages: Again
Следующее
От: "Shinoda, Noriyoshi"
Дата:
Сообщение: [HACKERS] pg_sequences bug ?