pgbench - add option to show actual builtin script code

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: pgbench - add option to show actual builtin script code
Date: 2019-04-08 15:43:24
Message-ID: alpine.DEB.2.21.1904081737390.5867@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hello devs,

The minor attached patch $SUBJECT, so that it can be inspected easily,
instead of having to look at the source code or whatever.

sh> pgbench --list select-only
-- select-only: <builtin: select only>
\set aid random(1, 100000 * :scale)
SELECT abalance FROM pgbench_accounts WHERE aid = :aid;

The builtin list output is also slightly improved:

sh> pgbench -b list
Available builtin scripts:
tpcb-like: <builtin: TPC-B (sort of)>
simple-update: <builtin: simple update>
select-only: <builtin: select only>


Attachment Content-Type Size
pgbench-builtin-list-1.patch text/x-diff 3.4 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2019-04-08 15:58:46 pgbench - implement strict TPC-B benchmark
Previous Message Fabrízio de Royes Mello 2019-04-08 15:34:35 Re: Pluggable Storage - Andres's take