pgsql: pgbench: doExecuteCommand -> executeMetaCommand

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgbench: doExecuteCommand -> executeMetaCommand
Date: 2019-03-27 15:22:26
Message-ID: E1h9ANm-0008FD-HN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgbench: doExecuteCommand -> executeMetaCommand

The new function is only in charge of meta commands, not SQL commands.
This change makes the code a little clearer: now all the state changes
are effected by advanceConnectionState. It also removes one indent
level, which makes the diff look bulkier than it really is.

Author: Fabien Coelho
Reviewed-by: Kirk Jamison
Discussion: https://postgr.es/m/alpine.DEB.2.21.1811240904500.12627@lancre

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9938d116331045171f37eef359992ec64c213384

Modified Files
--------------
src/bin/pgbench/pgbench.c | 299 +++++++++++++++++++++++-----------------------
1 file changed, 151 insertions(+), 148 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-03-27 16:58:27 pgsql: Avoid passing query tlist around separately from root->processed
Previous Message Tom Lane 2019-03-27 15:10:49 pgsql: Suppress uninitialized-variable warning.