pgsql: Add 'Portal Close' message to pipelined PQsendQuery()

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add 'Portal Close' message to pipelined PQsendQuery()
Date: 2021-06-11 20:07:38
Message-ID: E1lrnRK-0007fS-Pd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)sokolov(at)postgrespro(dot)ru>
Author: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-06-11 20:12:57 pgsql: Fix multiple crasher bugs in partitioned-table replication logic
Previous Message Alvaro Herrera 2021-06-11 19:50:04 pgsql: Return ReplicationSlotAcquire API to its original form