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: Implement pipeline mode in libpq
Date: Mon, 15 Mar 2021 21:20:08 +0000
Message-ID: <E1lLudE-0007Jb-Pz@gemulon.postgresql.org> (raw)

Implement pipeline mode in libpq

Pipeline mode in libpq lets an application avoid the Sync messages in
the FE/BE protocol that are implicit in the old libpq API after each
query.  The application can then insert Sync at its leisure with a new
libpq function PQpipelineSync.  This can lead to substantial reductions
in query latency.

Co-authored-by: Craig Ringer <craig.ringer@enterprisedb.com>
Co-authored-by: Matthieu Garrigues <matthieu.garrigues@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Aya Iwata <iwata.aya@jp.fujitsu.com>
Reviewed-by: Daniel Vérité <daniel@manitou-mail.org>
Reviewed-by: David G. Johnston <david.g.johnston@gmail.com>
Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>
Reviewed-by: Kirk Jamison <k.jamison@fujitsu.com>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Nikhil Sontakke <nikhils@2ndquadrant.com>
Reviewed-by: Vaishnavi Prabakaran <VaishnaviP@fast.au.fujitsu.com>
Reviewed-by: Zhihong Yu <zyu@yugabyte.com>

Discussion: https://postgr.es/m/CAMsr+YFUjJytRyV4J-16bEoiZyH=4nj+sQ7JP9ajwz=B4dMMZw@mail.gmail.com
Discussion: https://postgr.es/m/CAJkzx4T5E-2cQe3dtv2R78dYFvz+in8PY7A8MArvLhs_pg75gg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/libpq.sgml                            |  522 +++++++-
doc/src/sgml/lobj.sgml                             |    4 +
.../libpqwalreceiver/libpqwalreceiver.c            |    6 +
src/bin/pg_amcheck/pg_amcheck.c                    |    2 +
src/interfaces/libpq/exports.txt                   |    4 +
src/interfaces/libpq/fe-connect.c                  |   37 +-
src/interfaces/libpq/fe-exec.c                     |  717 +++++++++--
src/interfaces/libpq/fe-protocol3.c                |   77 +-
src/interfaces/libpq/libpq-fe.h                    |   21 +-
src/interfaces/libpq/libpq-int.h                   |   60 +-
src/test/modules/Makefile                          |    1 +
src/test/modules/libpq_pipeline/.gitignore         |    5 +
src/test/modules/libpq_pipeline/Makefile           |   20 +
src/test/modules/libpq_pipeline/README             |    1 +
src/test/modules/libpq_pipeline/libpq_pipeline.c   | 1303 ++++++++++++++++++++
.../modules/libpq_pipeline/t/001_libpq_pipeline.pl |   28 +
src/tools/msvc/Mkvcbuild.pm                        |    9 +-
src/tools/pgindent/typedefs.list                   |    2 +
18 files changed, 2706 insertions(+), 113 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1lLudE-0007Jb-Pz@gemulon.postgresql.org>
Permalink:  ../E1lLudE-0007Jb-Pz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lLudE-0007Jb-Pz@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: Implement pipeline mode in libpq
  In-Reply-To: <E1lLudE-0007Jb-Pz@gemulon.postgresql.org>
  References: <E1lLudE-0007Jb-Pz@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