From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add 'Portal Close' message to pipelined PQsendQuery()
Date: Fri, 11 Jun 2021 20:07:38 +0000
Message-ID: <E1lrnRK-0007fS-Pd@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4efcf47053eaf8dd88de2b1a89478df43d37d5c0
Modified Files
--------------
src/interfaces/libpq/fe-exec.c | 8 +++++++-
src/test/modules/libpq_pipeline/traces/pipeline_abort.trace | 2 ++
2 files changed, 9 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Add 'Portal Close' message to pipelined PQsendQuery()
In-Reply-To: <E1lrnRK-0007fS-Pd@gemulon.postgresql.org>
References: <E1lrnRK-0007fS-Pd@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox