pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add PQsendFlushRequest to libpq
Date: Tue, 29 Jun 2021 18:38:38 +0000
Message-ID: <E1lyId4-0001Vw-PD@gemulon.postgresql.org> (raw)

Add PQsendFlushRequest to libpq

This new libpq function allows the application to send an 'H' message,
which instructs the server to flush its outgoing buffer.

This hasn't been needed so far because the Sync message already requests
a buffer; and I failed to realize that this was needed in pipeline mode
because PQpipelineSync also causes the buffer to be flushed.  However,
sometimes it is useful to request a flush without establishing a
synchronization point.

Backpatch to 14, where pipeline mode was introduced in libpq.

Reported-by: Boris Kolpackov <boris@codesynthesis.com>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202106252350.t76x73nt643j@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a7192326c74da417d024a189da4d33c1bf1b40b6

Modified Files
--------------
doc/src/sgml/libpq.sgml          | 33 +++++++++++++++++++++++++++++++--
src/interfaces/libpq/exports.txt |  3 ++-
src/interfaces/libpq/fe-exec.c   | 36 ++++++++++++++++++++++++++++++++++++
src/interfaces/libpq/libpq-fe.h  |  1 +
4 files changed, 70 insertions(+), 3 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1lyId4-0001Vw-PD@gemulon.postgresql.org>
Permalink:  ../E1lyId4-0001Vw-PD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lyId4-0001Vw-PD@gemulon.postgresql.org

 · 

reply

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 PQsendFlushRequest to libpq
  In-Reply-To: <E1lyId4-0001Vw-PD@gemulon.postgresql.org>
  References: <E1lyId4-0001Vw-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