pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq: Add PQsendPipelineSync()
Date: Tue, 16 Jan 2024 01:14:04 +0000
Message-ID: <E1rPY1k-001c93-Cy@gemulon.postgresql.org> (raw)

libpq: Add PQsendPipelineSync()

This new function is equivalent to PQpipelineSync(), except that it does
not flush anything to the server except if the size threshold of the
output buffer is reached; the user must subsequently call PQflush()
instead.

Its purpose is to reduce the system call overhead of pipeline mode, by
giving to applications more control over the timing of the flushes when
manipulating commands in pipeline mode.

Author: Anton Kirilov
Reviewed-by: Jelte Fennema-Nio, Robert Haas, Álvaro Herrera, Denis
Laxalde, Michael Paquier
Discussion: https://postgr.es/m/CACV6eE5arHFZEA717=iKEa_OewpVFfWJOmsOdGrqqsr8CJVfWQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4794c2d31714235700ed68edafa10d1928c9bbb2

Modified Files
--------------
doc/src/sgml/libpq.sgml                            | 45 +++++++++++++++---
src/interfaces/libpq/exports.txt                   |  1 +
src/interfaces/libpq/fe-exec.c                     | 54 ++++++++++++++++++----
src/interfaces/libpq/libpq-fe.h                    |  1 +
src/test/modules/libpq_pipeline/libpq_pipeline.c   | 43 +++++++++++++++++
.../libpq_pipeline/traces/multi_pipelines.trace    | 11 +++++
6 files changed, 138 insertions(+), 17 deletions(-)



Message-ID: <E1rPY1k-001c93-Cy@gemulon.postgresql.org>
Permalink:  ../E1rPY1k-001c93-Cy@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rPY1k-001c93-Cy@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: libpq: Add PQsendPipelineSync()
  In-Reply-To: <E1rPY1k-001c93-Cy@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