postgresql/src/bin/pgbench
Alvaro Herrera 34f13cc484 pgbench: cleanup use of a "logfile" parameter
There is no reason to have the per-thread logfile file pointer as a
separate parameter in various functions: it's much simpler to put it in
the per-thread state struct instead, which is already being passed to
all functions that need the log file anyway.  Change the callsites in
which it was used as a boolean to test whether logging is active, so
that they use the use_log global variable instead.

No backpatch, even though this exists since commit a887c486d5 of March
2010, because this is just for cleanliness' sake and the surrounding
code has been modified a lot recently anyway.
2016-02-12 17:30:46 -03:00
..
.gitignore Move pgbench from contrib/ to src/bin/ 2015-04-13 13:07:16 -04:00
exprparse.y Update copyright for 2016 2016-01-02 13:33:40 -05:00
exprscan.l Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Move pgbench from contrib/ to src/bin/ 2015-04-13 13:07:16 -04:00
pgbench.c pgbench: cleanup use of a "logfile" parameter 2016-02-12 17:30:46 -03:00
pgbench.h Update copyright for 2016 2016-01-02 13:33:40 -05:00