Re: Pipeline mode and PQpipelineSync()

Alvaro Herrera <alvaro.herrera@2ndquadrant.com>

From: Alvaro Herrera <alvaro.herrera@2ndquadrant.com>
To: Boris Kolpackov <boris@codesynthesis.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-06-29T16:50:56Z
Lists: pgsql-hackers
On 2021-Jun-29, Alvaro Herrera wrote:

> (I do see that you're doing PQisBusy that I'm not.  Going to try adding
> it next.)

Ah, yes it does.  I can reproduce this now.  I thought PQconsumeInput
was sufficient, but it's not: you have to have the PQgetResult in there
too.  Looking ...

-- 
Álvaro Herrera                            39°49'30"S 73°17'W



Commits

  1. libpq: Fix sending queries in pipeline aborted state

  2. Fix libpq state machine in pipeline mode

  3. Add PQsendFlushRequest to libpq