pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add "G" (server-side data generation) as an initialization step
Date: Wed, 06 Nov 2019 02:03:16 +0000
Message-ID: <E1iSAfE-0003Ar-8Z@gemulon.postgresql.org> (raw)

Add "G" (server-side data generation) as an initialization step in pgbench.

This commit allows --init-steps option in pgbench to accept "G" character
meaning server-side data generation as an initialization step.
With "G", only limited queries are sent from pgbench client and
then data is actually generated in the server. This might make
the initialization phase faster if the bandwidth between pgbench client
and the server is low.

Author: Fabien Coelho
Reviewed-by: Anna Endo, Ibrar Ahmed, Fujii Masao
Discussion: https://postgr.es/m/alpine.DEB.2.21.1904061826420.3678@lancre

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                | 30 ++++++++-
src/bin/pgbench/pgbench.c                    | 98 ++++++++++++++++++++++------
src/bin/pgbench/t/001_pgbench_with_server.pl |  4 +-
src/bin/pgbench/t/002_pgbench_no_server.pl   |  2 +-
4 files changed, 108 insertions(+), 26 deletions(-)



Message-ID: <E1iSAfE-0003Ar-8Z@gemulon.postgresql.org>
Permalink:  ../E1iSAfE-0003Ar-8Z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iSAfE-0003Ar-8Z@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: fujii@postgresql.org
  Subject: Re: pgsql: Add "G" (server-side data generation) as an initialization step
  In-Reply-To: <E1iSAfE-0003Ar-8Z@gemulon.postgresql.org>
  References: <E1iSAfE-0003Ar-8Z@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