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-25T23:50:10Z
Lists: pgsql-hackers
Attachments
- v2-0001-Clarify-that-pipeline-sync-is-mandatory.patch (text/x-diff)
On 2021-Jun-24, Boris Kolpackov wrote: > Boris Kolpackov <boris@codesynthesis.com> writes: > > > What's strange here is that the first PQgetResult() call (marked with ???) > > returns NULL instead of result for INSERT #1 as in the first call sequence. > > I've hit another similar case except now an unexpected NULL result is > returned in the middle of PGRES_PIPELINE_ABORTED result sequence. The > call sequence is as follows: I haven't been able to get this to break for me yet, and I probably won't today. In the meantime, here's patches for the first one. The test added by 0003 fails, and then 0004 fixes it. -- Álvaro Herrera 39°49'30"S 73°17'W
Commits
-
libpq: Fix sending queries in pipeline aborted state
- ab0967942900 15.0 landed
- 1beaa654da61 14.0 landed
-
Fix libpq state machine in pipeline mode
- b71a9cb31e46 15.0 landed
- 690339fcd587 14.0 landed
-
Add PQsendFlushRequest to libpq
- a7192326c74d 15.0 landed
- 69cf1d5429d4 14.0 landed