pgsql: Add libpq pipeline mode support to pgbench

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add libpq pipeline mode support to pgbench
Date: 2021-03-15 21:35:10
Message-ID: E1lLurm-0007PN-HP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add libpq pipeline mode support to pgbench

New metacommands \startpipeline and \endpipeline allow the user to run
queries in libpq pipeline mode.

Author: Daniel Vérité <daniel(at)manitou-mail(dot)org>
Reviewed-by: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Discussion: https://postgr.es/m/b4e34135-2bd9-4b8a-94ca-27d760da26d7@manitou-mail.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9aa491abbf07ca8385a429385be8d68517384fdf

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 22 +++++
src/bin/pgbench/pgbench.c | 131 ++++++++++++++++++++++++---
src/bin/pgbench/t/001_pgbench_with_server.pl | 79 +++++++++++++++-
3 files changed, 216 insertions(+), 16 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-03-16 01:00:14 pgsql: Add some basic tests for progress reporting of COPY
Previous Message Alvaro Herrera 2021-03-15 21:20:08 pgsql: Implement pipeline mode in libpq

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-03-15 21:46:21 Re: Nondeterministic collations and the value returned by GROUP BY x
Previous Message Stephen Frost 2021-03-15 21:32:29 Re: Enhance traceability of wal_level changes for backup management