aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-06-29 15:01:29 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-06-29 15:01:29 -0400
commit690339fcd58759d213523f87071f992c4402e980 (patch)
treee82c515c1bcda39014f091542f4e1111e3743e35 /src/tutorial/syscat.source
parent69cf1d5429d48d030d71d5dd4931084d422413cb (diff)
downloadpostgresql-690339fcd58759d213523f87071f992c4402e980.tar.gz
postgresql-690339fcd58759d213523f87071f992c4402e980.zip
Fix libpq state machine in pipeline mode
The original coding required that PQpipelineSync had been called before the first call to PQgetResult, and failure to do that would result in an unexpected NULL result being returned. Fix by setting the right state when a query is sent, rather than leaving it unchanged and having PQpipelineSync apply the necessary state change. A new test case to verify the behavior is added, which relies on the new PQsendFlushRequest() function added by commit a7192326c74d. Backpatch to 14, where pipeline mode was added. Reported-by: Boris Kolpackov <boris@codesynthesis.com> Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/boris.20210616110321@codesynthesis.com
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions