postgresql/src/bin
Heikki Linnakangas 12788ae49e Refactor script execution state machine in pgbench.
The doCustom() function had grown into quite a mess. Rewrite it, in a more
explicit state machine style, for readability.

This also fixes one minor bug: if a script consisted entirely of meta
commands, doCustom() never returned to the caller, so progress reports
with the -P option were not printed. I don't want to backpatch this
refactoring, and the bug is quite insignificant, so only commit this to
master, and leave the bug unfixed in back-branches.

Review and original bug report by Fabien Coelho.

Discussion: <alpine.DEB.2.20.1607090850120.3412@sto>
2016-09-26 10:56:02 +03:00
..
initdb Repair whitespace in initdb message. 2016-09-06 13:26:43 -04:00
pg_archivecleanup Fix a bunch of places that called malloc and friends with no NULL check. 2016-08-30 18:22:43 -04:00
pg_basebackup pg_basebackup: Clean created directories on failure 2016-09-12 12:00:00 -04:00
pg_config Translation updates 2016-08-08 11:08:00 -04:00
pg_controldata pg_ctl: Detect current standby state from pg_control 2016-09-21 12:00:00 -04:00
pg_ctl pg_ctl: Add promote wait option to help output 2016-09-23 12:00:00 -04:00
pg_dump Fix incorrect logic for excluding range constructor functions in pg_dump. 2016-09-23 13:49:26 -04:00
pg_resetxlog Translation updates 2016-08-08 11:08:00 -04:00
pg_rewind Add tests for various connection string issues 2016-09-22 12:00:00 -04:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Stamp HEAD as 10devel. 2016-08-15 13:49:49 -04:00
pg_xlogdump Split hash.h → hash_xlog.h 2016-08-29 18:55:49 -03:00
pgbench Refactor script execution state machine in pgbench. 2016-09-26 10:56:02 +03:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00
scripts Add tests for various connection string issues 2016-09-22 12:00:00 -04:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00