Implement pipeline mode in libpq
authorAlvaro Herrera
Mon, 15 Mar 2021 21:13:42 +0000 (18:13 -0300)
committerAlvaro Herrera
Mon, 15 Mar 2021 21:13:42 +0000 (18:13 -0300)
commitacb7e4eb6b1c614c68a62fb3a6a5bba1af0a2659
treeff5dccb6a8372d0373a442841d8df4333a234eaa
parent146cb3889c3ccb3fce198fe7464a1296a9e107c3
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
Co-authored-by: Matthieu Garrigues
Co-authored-by: Álvaro Herrera
Reviewed-by: Andres Freund
Reviewed-by: Aya Iwata
Reviewed-by: Daniel Vérité
Reviewed-by: David G. Johnston
Reviewed-by: Justin Pryzby
Reviewed-by: Kirk Jamison
Reviewed-by: Michael Paquier
Reviewed-by: Nikhil Sontakke
Reviewed-by: Vaishnavi Prabakaran
Reviewed-by: Zhihong Yu
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
18 files changed:
doc/src/sgml/libpq.sgml
doc/src/sgml/lobj.sgml
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/bin/pg_amcheck/pg_amcheck.c
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h
src/test/modules/Makefile
src/test/modules/libpq_pipeline/.gitignore [new file with mode: 0644]
src/test/modules/libpq_pipeline/Makefile [new file with mode: 0644]
src/test/modules/libpq_pipeline/README [new file with mode: 0644]
src/test/modules/libpq_pipeline/libpq_pipeline.c [new file with mode: 0644]
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl [new file with mode: 0644]
src/tools/msvc/Mkvcbuild.pm
src/tools/pgindent/typedefs.list