pgsql: pgbench: replace run-time string comparisons with an enum identi

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgbench: replace run-time string comparisons with an enum identi
Date: 2017-11-02 22:32:19
Message-ID: E1eAO27-0006dp-Oo@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgbench: replace run-time string comparisons with an enum identifier.

Minor refactoring that should yield some performance benefit.

Fabien Coelho, reviewed by Aleksandr Parfenov

Discussion: https://postgr.es/m/alpine.DEB.2.20.1709230538130.4999@lancre

Branch
------
master

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

Modified Files
--------------
src/bin/pgbench/pgbench.c | 62 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 51 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2017-11-03 11:41:52 pgsql: Improve error message for incorrect number inputs in libecpg.
Previous Message Tom Lane 2017-11-02 21:22:17 pgsql: Set the metapage's pd_lower correctly in brin, gin, and spgist i