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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f987f83de20afe3ba78be1e15db5dffe7488faa7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-11-02T22:32:14Z
Releases: 11.0
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

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +51 −11

Discussion