postgresql/src/bin
Alvaro Herrera 3bac77c48f Rework the pgbench state machine code for clarity
This commit continues the code improvements started by commit
12788ae49e.  With this commit, state machine transitions are better
contained in the routine that was called doCustom() and is now called
advanceConnectionState -- the resulting code is easier to reason about,
since there are no state changes occuring in the outer layer.

This change is prompted by future patches to add more features to
pgbench, which will need to effect some more surgery to this code.

Fabien's original had all the machine state changes inside one routine,
but I (Álvaro) thought that a subroutine to handle command execution is
more straightforward to review, so this commit does not match Fabien's
submission closely.  If something is broken, it's probably my fault.

Author: Fabien Coelho, Álvaro Herrera
Reviewed-by: Kirk Jamison
Discussion: https://postgr.es/m/alpine.DEB.2.21.1808111104320.1705@lancre
2018-11-21 16:33:53 -03:00
..
initdb Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
pg_archivecleanup pg_archivecleanup: Update file header comment a bit 2018-11-19 08:57:03 +01:00
pg_basebackup Fix speling error 2018-10-08 08:57:24 +02:00
pg_config Translation updates 2018-05-21 12:29:52 -04:00
pg_controldata Translation updates 2018-06-25 12:37:18 +02:00
pg_ctl Implement "pg_ctl logrotate" command 2018-09-01 19:46:49 +03:00
pg_dump Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
pg_resetwal Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:17 -04:00
pg_rewind pg_rewind: Remove unused macro 2018-10-30 13:22:11 +01:00
pg_test_fsync Translation updates 2018-05-21 12:29:52 -04:00
pg_test_timing Translation updates 2018-05-21 12:29:52 -04:00
pg_upgrade Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
pg_verify_checksums Fix issues with TAP tests of pg_verify_checksums 2018-11-20 10:20:52 +09:00
pg_waldump Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:17 -04:00
pgbench Rework the pgbench state machine code for clarity 2018-11-21 16:33:53 -03:00
pgevent Update copyright for 2018 2018-01-02 23:30:12 -05:00
psql Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
scripts Add semicolons to end of internally run queries 2018-08-30 19:23:22 +02:00
Makefile Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00