Add 'Portal Close' message to pipelined PQsendQuery()
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 11 Jun 2021 20:05:50 +0000 (16:05 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 11 Jun 2021 20:05:50 +0000 (16:05 -0400)
commit4efcf47053eaf8dd88de2b1a89478df43d37d5c0
treed8cfad2404df2917ecdee53a665268b9c957e7bd
parent1632ea43682fcea8836ea245771ae85b9e1bcd38
Add 'Portal Close' message to pipelined PQsendQuery()

Commit acb7e4eb6b1c added a new implementation for PQsendQuery so that
it works in pipeline mode (by using extended query protocol), but it
behaves differently from the 'Q' message (in simple query protocol) used
by regular implementation: the new one doesn't close the unnamed portal.
Change the new code to have identical behavior to the old.

Reported-by: Yura Sokolov <y.sokolov@postgrespro.ru>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202106072107.d4i55hdscxqj@alvherre.pgsql
src/interfaces/libpq/fe-exec.c
src/test/modules/libpq_pipeline/traces/pipeline_abort.trace