pgbench - add option to show actual builtin script code - Mailing list pgsql-hackers

From Fabien COELHO
Subject pgbench - add option to show actual builtin script code
Date
Msg-id alpine.DEB.2.21.1904081737390.5867@lancre
Whole thread Raw
Responses Re: pgbench - add option to show actual builtin script code
List 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>

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Implement uuid_version()
Next
From: Fabien COELHO
Date:
Subject: pgbench - implement strict TPC-B benchmark