Re: libpq pipelining

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: libpq pipelining
Дата
Msg-id 54807016.8010904@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: libpq pipelining  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: libpq pipelining  (Matt Newell <newellm@blur.com>)
Список pgsql-hackers
On 12/04/2014 05:08 PM, Heikki Linnakangas wrote:
>>
> 
> A good API is crucial for this. It should make it easy to write an
> application that does pipelining, and to handle all the error conditions
> in a predictable way. I'd suggest that you write the documentation
> first, before writing any code, so that we can discuss the API. It
> doesn't have to be in SGML format yet, a plain-text description of the
> API will do.

I strongly agree.

Applications need to be able to reliably predict what will happen if
there's an error in the middle of a pipeline.

Consideration of implicit transactions (autocommit), the whole pipeline
being one transaction, or multiple transactions is needed.

Apps need to be able to wait for the result of a query partway through a
pipeline, e.g. scheduling four queries, then waiting for the result of
the 2nd.

There are probably plenty of other wrinkly bits to think about.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: New wal format distorts pg_xlogdump --stats
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps